{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Python3 网络爬虫 2 小时简单入门\n",
    "\n",
    "## 网络爬虫一览\n",
    "\n",
    "[网络爬虫百度百科](https://baike.baidu.com/item/%E7%BD%91%E7%BB%9C%E7%88%AC%E8%99%AB/5162711)\n",
    "\n",
    "我们可以把互联网比作一张大网，而爬虫（即网络爬虫）便是在网上爬行的蜘蛛。如果把网的节点比作一个个网页，爬虫爬到这就相当于访问了该页面，获取了其信息。可以把节点间的连线比作网页与网页之间的链接关系，这样蜘蛛通过一个节点后，可以顺着节点连线继续爬行到达下一个节点，即通过一个网页继续获取后续的网页，这样整个网的节点便可以被蜘蛛全部爬行到，网站的数据就可以被抓取下来了。\n",
    "\n",
    "广义上的爬虫：百度、必应、谷歌等搜索引擎类，抓取数据过程中突破反爬机制的技术手段，包括但不限于验证码的自动识别（反向图灵测试）、数据解密、代理IP池、模拟浏览器访问、伪造用户代理、JS逆向解析等\n",
    "\n",
    "狭义上的爬虫：抢票程序、获取网络目标数据等自动化的数据抓取程序\n",
    "\n",
    "注意！！！爬虫——[灰色地带](https://cn.bing.com/search?q=%E7%88%AC%E8%99%AB%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E5%85%A5%E7%8B%B1)\n",
    "\n",
    "## 爬虫能干啥？（对于我们）\n",
    "\n",
    "### 获得数据的三种常用方法：\n",
    "- 1、问卷收集\n",
    "- 2、数据库（免费/付费）\n",
    "- 3、网络数据——可下载的\n",
    "- 4、网络数据——仅供观赏的——爬虫！！！\n",
    "\n",
    "### 获取数据能干啥？\n",
    "- 1、毕业论文以及学校论文类数据源不用愁(学校老师需要)\n",
    "- 2、踏入工作行业调研需要数据\n",
    "- 3、做兼职\n",
    "- 4、私人需求（看小说、爬取对象朋友圈数据进行分析、轰炸短信qq、打游戏获取对方战绩信息提高胜率等）\n",
    "- 5、and so on\n",
    "\n",
    "## 了解爬虫原理\n",
    "\n",
    "### 上网网页请求过程\n",
    "![](https://imgconvert.csdnimg.cn/aHR0cHM6Ly93d3cubGdzdGF0aWMuY29tL2kvaW1hZ2UzL00wMS82Qi8zMi9DZ3BPSUY1WFJ4U0FORzBfQUFDb3ZKUHRNWVE0OTcuanBn?x-oss-process=image/format,png)\n",
    "\n",
    "具体详见[必知必会，掌握 HTTP 基本原理](https://gitee.com/zhangkaiheng/Python52Scrapy/blob/master/content/%E7%AC%AC01%E8%AE%B2%EF%BC%9A%E5%BF%85%E7%9F%A5%E5%BF%85%E4%BC%9A%EF%BC%8C%E6%8E%8C%E6%8F%A1%20HTTP%20%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86.md)\n",
    "\n",
    "\n",
    "### 网页结构\n",
    "\n",
    "html——肉\n",
    "\n",
    "![](https://imgconvert.csdnimg.cn/aHR0cHM6Ly93d3cubGdzdGF0aWMuY29tL2kvaW1hZ2UzL00wMS82Qi85RC9DZ3BPSUY1WWVkV0FZTThWQUFBNDh0dkxrdFk0OTcuanBn?x-oss-process=image/format,png)\n",
    "\n",
    "类似win10的记事本的文本\n",
    "盒子模型：盒子套盒子 兄弟姐妹关系\n",
    "\n",
    "![](https://imgconvert.csdnimg.cn/aHR0cHM6Ly93d3cubGdzdGF0aWMuY29tL2kvaW1hZ2UzL00wMS82Qi85RS9DZ3EyeGw1WWVkV0FNc3d4QUFBb0pSVlRUZXM2MjEuanBn?x-oss-process=image/format,png)\n",
    "\n",
    "css——骨\n",
    "\n",
    "类似有一定结构的word文本\n",
    "\n",
    "js——筋\n",
    "\n",
    "JavaScript 渲染页面\n",
    "\n",
    "了解网页类型的数据结构能干啥：\n",
    "- 爬虫解析（提取）数据不用愁\n",
    "- 网页修改 VS PS \n",
    "    \n",
    "    举例：[青年大学习](https://cn.bing.com/search?q=%E9%9D%92%E5%B9%B4%E5%A4%A7%E5%AD%A6%E4%B9%A0%E7%9F%A5%E8%AF%86%E9%97%AE%E7%AD%94)——看到的不一定是真的\n",
    "## 请求数据：Requests库\n",
    "\n",
    "[Requests: 让 HTTP 服务人类](https://docs.python-requests.org/zh_CN/latest/)\n",
    "\n",
    "安装\n",
    "\n",
    "```pip3 install requests```\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>序号</th>\n",
       "      <th>股票代码</th>\n",
       "      <th>股票简称</th>\n",
       "      <th>公司名称</th>\n",
       "      <th>省份</th>\n",
       "      <th>城市</th>\n",
       "      <th>主营业务收入(202109)</th>\n",
       "      <th>净利润(202109)</th>\n",
       "      <th>员工人数</th>\n",
       "      <th>上市日期</th>\n",
       "      <th>招股书</th>\n",
       "      <th>公司财报</th>\n",
       "      <th>行业分类</th>\n",
       "      <th>产品类型</th>\n",
       "      <th>主营业务</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>平安银行</td>\n",
       "      <td>平安银行股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1271.90亿</td>\n",
       "      <td>291.35亿</td>\n",
       "      <td>36676</td>\n",
       "      <td>1991-04-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>银行</td>\n",
       "      <td>商业银行业务</td>\n",
       "      <td>经有关监管机构批准的各项商业银行业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>万科A</td>\n",
       "      <td>万科企业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>2714.86亿</td>\n",
       "      <td>246.04亿</td>\n",
       "      <td>140565</td>\n",
       "      <td>1991-01-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产、物业管理、投资咨询</td>\n",
       "      <td>房地产开发和物业服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>国华网安</td>\n",
       "      <td>深圳国华网安科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1.66亿</td>\n",
       "      <td>3395.90万</td>\n",
       "      <td>264</td>\n",
       "      <td>1991-01-14</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>生物医药</td>\n",
       "      <td>移动应用安全服务、移动互联网游戏</td>\n",
       "      <td>移动应用安全服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>5</td>\n",
       "      <td>ST星源</td>\n",
       "      <td>深圳世纪星源股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>2.92亿</td>\n",
       "      <td>1.92亿</td>\n",
       "      <td>629</td>\n",
       "      <td>1990-12-10</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>环保工程、物业管理</td>\n",
       "      <td>酒店经营、物业管理、环保业务</td>\n",
       "      <td>绿色低碳城市社区建设相关的服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>6</td>\n",
       "      <td>深振业A</td>\n",
       "      <td>深圳市振业(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>23.02亿</td>\n",
       "      <td>5.88亿</td>\n",
       "      <td>397</td>\n",
       "      <td>1992-04-27</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产</td>\n",
       "      <td>从事房地产开发与销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>*ST全新</td>\n",
       "      <td>深圳市全新好股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1.28亿</td>\n",
       "      <td>-308.50万</td>\n",
       "      <td>76</td>\n",
       "      <td>1992-04-13</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>物业经营</td>\n",
       "      <td>物业管理及停车费、房屋租赁、一次性口罩、纳米胶囊、杀菌纸巾</td>\n",
       "      <td>物业管理和房屋租赁业等</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "      <td>神州高铁</td>\n",
       "      <td>神州高铁技术股份有限公司</td>\n",
       "      <td>北京</td>\n",
       "      <td>北京市</td>\n",
       "      <td>10.43亿</td>\n",
       "      <td>-9568.30万</td>\n",
       "      <td>2394</td>\n",
       "      <td>1992-05-07</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>轨道交通设备</td>\n",
       "      <td>轨道交通</td>\n",
       "      <td>专业致力于提供轨道交通运营检修装备与数据、线路运营、维保服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>122.07亿</td>\n",
       "      <td>15.18亿</td>\n",
       "      <td>13345</td>\n",
       "      <td>1991-06-25</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>综合</td>\n",
       "      <td>高新技术产业、生物医药、房地产</td>\n",
       "      <td>高新技术产业、生物医药产业、房地产及其他产业。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>10</td>\n",
       "      <td>美丽生态</td>\n",
       "      <td>深圳美丽生态股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>10.57亿</td>\n",
       "      <td>4003.73万</td>\n",
       "      <td>278</td>\n",
       "      <td>1995-10-27</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>园林工程</td>\n",
       "      <td>燃气销售服务、园林建设、园林设计、苗木销售</td>\n",
       "      <td>工程施工、园林绿化及环境综合整治。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>深物业A</td>\n",
       "      <td>深圳市物业发展(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>31.81亿</td>\n",
       "      <td>7.63亿</td>\n",
       "      <td>8035</td>\n",
       "      <td>1992-03-30</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>产城空间开发、物业管理服务、产业生态运营、餐饮业务、工程监理业务</td>\n",
       "      <td>从事房地产开发经营，兼营物业管理、房屋租赁、出租车客运、餐饮服务等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>南玻A</td>\n",
       "      <td>中国南玻集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>102.47亿</td>\n",
       "      <td>15.37亿</td>\n",
       "      <td>10558</td>\n",
       "      <td>1992-02-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>玻璃</td>\n",
       "      <td>玻璃业务、电子玻璃及显示器件业务、太阳能及其他业务</td>\n",
       "      <td>研发、生产制造和销售优质浮法玻璃和工程玻璃、太阳能玻璃和硅材料、光伏电池和组件等可再生能源产...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>沙河股份</td>\n",
       "      <td>沙河实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>2434.55万</td>\n",
       "      <td>-3118.04万</td>\n",
       "      <td>153</td>\n",
       "      <td>1992-06-02</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产销售</td>\n",
       "      <td>从事房地产开发与经营、现代服务型产业用房运营与管理。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>16</td>\n",
       "      <td>深康佳A</td>\n",
       "      <td>康佳集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>316.27亿</td>\n",
       "      <td>-1.29亿</td>\n",
       "      <td>17216</td>\n",
       "      <td>1992-03-27</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电视机</td>\n",
       "      <td>工贸业务、彩电业务、环保业务、白电业务、半导体业务</td>\n",
       "      <td>消费类电子业务、工贸业务、环保业务、半导体业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>17</td>\n",
       "      <td>深中华A</td>\n",
       "      <td>深圳中华自行车(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>8324.37万</td>\n",
       "      <td>220.27万</td>\n",
       "      <td>65</td>\n",
       "      <td>1992-03-31</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>自行车</td>\n",
       "      <td>自行车及零配件销售、锂电池材料、珠宝黄金</td>\n",
       "      <td>自行车及锂电池材料业务、珠宝黄金业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "      <td>深粮控股</td>\n",
       "      <td>深圳市深粮控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>75.54亿</td>\n",
       "      <td>2.99亿</td>\n",
       "      <td>1246</td>\n",
       "      <td>1992-10-12</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>软饮料</td>\n",
       "      <td>食品和饮料及茶加工、粮油贸易及加工、粮油仓储物流及服务</td>\n",
       "      <td>批发零售业务、食品加工制造业务、租赁及商务服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>20</td>\n",
       "      <td>深华发A</td>\n",
       "      <td>深圳中恒华发股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>6.04亿</td>\n",
       "      <td>816.42万</td>\n",
       "      <td>1132</td>\n",
       "      <td>1992-04-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子零部件</td>\n",
       "      <td>显示器、注塑件、EPS产品、物业租赁、废料收入、水电费及其他</td>\n",
       "      <td>精密注塑件的加工、销售;液晶显示器的加工、销售;轻型包装材料的加工、销售以及物业租赁业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>21</td>\n",
       "      <td>深科技</td>\n",
       "      <td>深圳长城开发科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>122.68亿</td>\n",
       "      <td>5.78亿</td>\n",
       "      <td>27051</td>\n",
       "      <td>1994-02-02</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>PC、服务器及硬件</td>\n",
       "      <td>存储半导体业务、自有产品、高端制造</td>\n",
       "      <td>致力于为全球客户提供技术研发、工艺设计、生产加工、采购管理、物流支持等电子产品制造服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>23</td>\n",
       "      <td>深天地A</td>\n",
       "      <td>深圳市天地(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>11.22亿</td>\n",
       "      <td>1998.86万</td>\n",
       "      <td>984</td>\n",
       "      <td>1993-04-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>商品混凝土</td>\n",
       "      <td>房地产、工业、租赁</td>\n",
       "      <td>商品混凝土的生产和销售、房地产的开发及物业管理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>25</td>\n",
       "      <td>特力A</td>\n",
       "      <td>深圳市特力(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>3.86亿</td>\n",
       "      <td>7035.21万</td>\n",
       "      <td>302</td>\n",
       "      <td>1993-06-21</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>汽车销售</td>\n",
       "      <td>汽车销售、汽车维修及检测、珠宝批发及零售、物业租赁及服务</td>\n",
       "      <td>汽车销售、汽车检测、维修及配件销售；资源性资产管理；珠宝服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>26</td>\n",
       "      <td>飞亚达</td>\n",
       "      <td>飞亚达精密科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>40.85亿</td>\n",
       "      <td>3.43亿</td>\n",
       "      <td>4901</td>\n",
       "      <td>1993-06-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>珠宝首饰</td>\n",
       "      <td>手表品牌业务、手表零售服务业务、精密科技业务、租赁业务</td>\n",
       "      <td>主要从事钟表及其零配件的设计、开发、制造、销售和维修业务，包括\"飞亚达\"表的产品经营和世界名...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>21</td>\n",
       "      <td>27</td>\n",
       "      <td>深圳能源</td>\n",
       "      <td>深圳能源集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>205.72亿</td>\n",
       "      <td>27.85亿</td>\n",
       "      <td>7384</td>\n",
       "      <td>1993-09-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>火电</td>\n",
       "      <td>燃煤、燃机、水电、风电、生态环保、综合燃气</td>\n",
       "      <td>各种常规能源和新能源的开发、生产、购销,以及城市固体废物处理、城市燃气供应和废水处理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>22</td>\n",
       "      <td>28</td>\n",
       "      <td>国药一致</td>\n",
       "      <td>国药集团一致药业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>502.10亿</td>\n",
       "      <td>12.71亿</td>\n",
       "      <td>38289</td>\n",
       "      <td>1993-08-09</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>医药商业</td>\n",
       "      <td>药品、器械耗材、诊断试剂、仪器设备</td>\n",
       "      <td>医药分销和医药零售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>23</td>\n",
       "      <td>29</td>\n",
       "      <td>深深房A</td>\n",
       "      <td>深圳经济特区房地产(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>9.67亿</td>\n",
       "      <td>1.62亿</td>\n",
       "      <td>1668</td>\n",
       "      <td>1993-09-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>住宅、商铺及车位、公寓</td>\n",
       "      <td>住宅地产开发。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>24</td>\n",
       "      <td>30</td>\n",
       "      <td>富奥股份</td>\n",
       "      <td>富奥汽车零部件股份有限公司</td>\n",
       "      <td>吉林</td>\n",
       "      <td>长春市</td>\n",
       "      <td>93.52亿</td>\n",
       "      <td>6.11亿</td>\n",
       "      <td>7397</td>\n",
       "      <td>1993-09-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>汽车零部件</td>\n",
       "      <td>零部件</td>\n",
       "      <td>汽车零部件的研发、生产和销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>25</td>\n",
       "      <td>31</td>\n",
       "      <td>大悦城</td>\n",
       "      <td>大悦城控股集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>221.29亿</td>\n",
       "      <td>18.40亿</td>\n",
       "      <td>10283</td>\n",
       "      <td>1993-10-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>商品房销售、一级土地开发、投资物业及相关服务、酒店经营、物业及其他管理</td>\n",
       "      <td>房地产开发、经营、销售、出租及管理住宅、商用物业，经营业态涵盖住宅、商业地产及部分产业地产。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>26</td>\n",
       "      <td>32</td>\n",
       "      <td>深桑达A</td>\n",
       "      <td>深圳市桑达实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>279.25亿</td>\n",
       "      <td>5.03亿</td>\n",
       "      <td>476</td>\n",
       "      <td>1993-10-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子物流</td>\n",
       "      <td>电子信息、房地产及租赁、电子商贸、电子物流</td>\n",
       "      <td>电子制造、电子商贸、电子物流服务等在内的一体化现代电子信息服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>27</td>\n",
       "      <td>34</td>\n",
       "      <td>神州数码</td>\n",
       "      <td>神州数码集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>860.11亿</td>\n",
       "      <td>3451.21万</td>\n",
       "      <td>4569</td>\n",
       "      <td>1994-05-09</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>贸易</td>\n",
       "      <td>云管理服务及数字化方案提供商、信息技术应用创新业务、IT领域分销和增值服务商</td>\n",
       "      <td>云管理服务及数字化方案提供商,信息技术应用创新业务,IT领域分销和增值服务商。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>28</td>\n",
       "      <td>35</td>\n",
       "      <td>中国天楹</td>\n",
       "      <td>中国天楹股份有限公司</td>\n",
       "      <td>江苏</td>\n",
       "      <td>南通市</td>\n",
       "      <td>173.15亿</td>\n",
       "      <td>6.65亿</td>\n",
       "      <td>60224</td>\n",
       "      <td>1994-04-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>垃圾发电</td>\n",
       "      <td>综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置、环保装备制造</td>\n",
       "      <td>综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置和环保装备制造。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>29</td>\n",
       "      <td>36</td>\n",
       "      <td>华联控股</td>\n",
       "      <td>华联控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>8.26亿</td>\n",
       "      <td>1.96亿</td>\n",
       "      <td>806</td>\n",
       "      <td>1994-06-17</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房产销售、房地产出租、酒店收入</td>\n",
       "      <td>房地产开发和物业经营与服务管理业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>30</td>\n",
       "      <td>37</td>\n",
       "      <td>深南电A</td>\n",
       "      <td>深圳南山热电股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>5.89亿</td>\n",
       "      <td>-4972.40万</td>\n",
       "      <td>403</td>\n",
       "      <td>1994-07-01</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>火电</td>\n",
       "      <td>能源行业、工程劳务、污泥干化</td>\n",
       "      <td>生产经营供电供热、从事发电厂(站)的相关技术咨询和技术服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>31</td>\n",
       "      <td>38</td>\n",
       "      <td>深大通</td>\n",
       "      <td>深圳大通实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.86亿</td>\n",
       "      <td>-3.36亿</td>\n",
       "      <td>147</td>\n",
       "      <td>1994-08-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>网络媒体</td>\n",
       "      <td>煤炭、铁精粉贸易、广告发布、民间资本管理、保理业务</td>\n",
       "      <td>以生物技术研究及创新医药、生物工程及后端衍生功能性健康消费品为主要发展方向，以供应链服务及民...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>32</td>\n",
       "      <td>39</td>\n",
       "      <td>中集集团</td>\n",
       "      <td>中国国际海运集装箱(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1182.42亿</td>\n",
       "      <td>99.44亿</td>\n",
       "      <td>53928</td>\n",
       "      <td>1994-04-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>金属制品</td>\n",
       "      <td>集装箱、道路运输车辆、能源、化工、液态食品装备、海洋工程、空港设备、物流服务、金融、房地产、重卡</td>\n",
       "      <td>主要从事集装箱、能源、化工及液态食品装备、海洋工程装备、空港设备的制造及服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>33</td>\n",
       "      <td>40</td>\n",
       "      <td>东旭蓝天</td>\n",
       "      <td>东旭蓝天新能源股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.16亿</td>\n",
       "      <td>-1.85亿</td>\n",
       "      <td>572</td>\n",
       "      <td>1994-08-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>太阳能</td>\n",
       "      <td>物业及房屋租赁、新能源、生态环保、供应链</td>\n",
       "      <td>光伏电站投资、建设、运营,房地产开发与销售、物业管理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>34</td>\n",
       "      <td>42</td>\n",
       "      <td>中洲控股</td>\n",
       "      <td>深圳市中洲投资控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>60.02亿</td>\n",
       "      <td>2.17亿</td>\n",
       "      <td>2489</td>\n",
       "      <td>1994-09-21</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产、服务、酒店、施工</td>\n",
       "      <td>房地产开发。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>35</td>\n",
       "      <td>45</td>\n",
       "      <td>深纺织A</td>\n",
       "      <td>深圳市纺织(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>16.72亿</td>\n",
       "      <td>1.14亿</td>\n",
       "      <td>1369</td>\n",
       "      <td>1994-08-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>显示器件</td>\n",
       "      <td>物业及租赁、纺织品、偏光片、贸易</td>\n",
       "      <td>液晶显示用偏光片的研发、生产、营销，自有物业的经营管理业务及高档纺织服装业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>36</td>\n",
       "      <td>46</td>\n",
       "      <td>泛海控股</td>\n",
       "      <td>泛海控股股份有限公司</td>\n",
       "      <td>北京</td>\n",
       "      <td>北京市</td>\n",
       "      <td>140.97亿</td>\n",
       "      <td>-18.10亿</td>\n",
       "      <td>9601</td>\n",
       "      <td>1994-09-12</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产销售、物业出租、物业管理、装修工程、金融投资、金融贸易</td>\n",
       "      <td>项目投资,资产管理,房地产及旅游项目开发、物业管理(以上项目凭资质证经营),建筑设备、建筑装...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>37</td>\n",
       "      <td>48</td>\n",
       "      <td>京基智农</td>\n",
       "      <td>深圳市京基智农时代股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.80亿</td>\n",
       "      <td>3.83亿</td>\n",
       "      <td>1305</td>\n",
       "      <td>1994-11-01</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>饲料</td>\n",
       "      <td>农业、房地产业、金融</td>\n",
       "      <td>饲料生产、自来水供应、房地产开发、商业贸易、养殖业、房屋及土地租赁、金融等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>38</td>\n",
       "      <td>49</td>\n",
       "      <td>德赛电池</td>\n",
       "      <td>深圳市德赛电池科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>126.22亿</td>\n",
       "      <td>4.92亿</td>\n",
       "      <td>9833</td>\n",
       "      <td>1995-03-20</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电池</td>\n",
       "      <td>小型锂电池电源管理系统及封装集成业务、中型锂电池电源管理系统及封装集成业务、大型新能源汽车电...</td>\n",
       "      <td>锂电池电源管理系统及封装集成业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>39</td>\n",
       "      <td>50</td>\n",
       "      <td>深天马A</td>\n",
       "      <td>天马微电子股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>239.62亿</td>\n",
       "      <td>14.10亿</td>\n",
       "      <td>37484</td>\n",
       "      <td>1995-03-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>显示器件</td>\n",
       "      <td>电子元器件</td>\n",
       "      <td>从事液晶显示器及相关材料、设备、产品的设计、制造、销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>40</td>\n",
       "      <td>55</td>\n",
       "      <td>方大集团</td>\n",
       "      <td>方大集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>24.40亿</td>\n",
       "      <td>1.86亿</td>\n",
       "      <td>2245</td>\n",
       "      <td>1996-04-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>其他建材</td>\n",
       "      <td>智慧幕墙系统及材料产业、轨道交通设备产业、新能源产业、房地产产业</td>\n",
       "      <td>高端幕墙系统及材料产业、轨道交通屏蔽门设备产业、新能源产业、房地产等业务。</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    序号  股票代码   股票简称                 公司名称  省份   城市 主营业务收入(202109) 净利润(202109)  \\\n",
       "0    1     1   平安银行           平安银行股份有限公司  广东  深圳市       1271.90亿     291.35亿   \n",
       "1    2     2    万科A           万科企业股份有限公司  广东  深圳市       2714.86亿     246.04亿   \n",
       "2    3     4   国华网安       深圳国华网安科技股份有限公司  广东  深圳市          1.66亿    3395.90万   \n",
       "3    4     5   ST星源         深圳世纪星源股份有限公司  广东  深圳市          2.92亿       1.92亿   \n",
       "4    5     6   深振业A      深圳市振业(集团)股份有限公司  广东  深圳市         23.02亿       5.88亿   \n",
       "5    6     7  *ST全新         深圳市全新好股份有限公司  广东  深圳市          1.28亿    -308.50万   \n",
       "6    7     8   神州高铁         神州高铁技术股份有限公司  北京  北京市         10.43亿   -9568.30万   \n",
       "7    8     9   中国宝安         中国宝安集团股份有限公司  广东  深圳市        122.07亿      15.18亿   \n",
       "8    9    10   美丽生态         深圳美丽生态股份有限公司  广东  深圳市         10.57亿    4003.73万   \n",
       "9   10    11   深物业A    深圳市物业发展(集团)股份有限公司  广东  深圳市         31.81亿       7.63亿   \n",
       "10  11    12    南玻A         中国南玻集团股份有限公司  广东  深圳市        102.47亿      15.37亿   \n",
       "11  12    14   沙河股份           沙河实业股份有限公司  广东  深圳市       2434.55万   -3118.04万   \n",
       "12  13    16   深康佳A           康佳集团股份有限公司  广东  深圳市        316.27亿      -1.29亿   \n",
       "13  14    17   深中华A    深圳中华自行车(集团)股份有限公司  广东  深圳市       8324.37万     220.27万   \n",
       "14  15    19   深粮控股        深圳市深粮控股股份有限公司  广东  深圳市         75.54亿       2.99亿   \n",
       "15  16    20   深华发A         深圳中恒华发股份有限公司  广东  深圳市          6.04亿     816.42万   \n",
       "16  17    21    深科技       深圳长城开发科技股份有限公司  广东  深圳市        122.68亿       5.78亿   \n",
       "17  18    23   深天地A      深圳市天地(集团)股份有限公司  广东  深圳市         11.22亿    1998.86万   \n",
       "18  19    25    特力A      深圳市特力(集团)股份有限公司  广东  深圳市          3.86亿    7035.21万   \n",
       "19  20    26    飞亚达        飞亚达精密科技股份有限公司  广东  深圳市         40.85亿       3.43亿   \n",
       "0   21    27   深圳能源         深圳能源集团股份有限公司  广东  深圳市        205.72亿      27.85亿   \n",
       "1   22    28   国药一致       国药集团一致药业股份有限公司  广东  深圳市        502.10亿      12.71亿   \n",
       "2   23    29   深深房A  深圳经济特区房地产(集团)股份有限公司  广东  深圳市          9.67亿       1.62亿   \n",
       "3   24    30   富奥股份        富奥汽车零部件股份有限公司  吉林  长春市         93.52亿       6.11亿   \n",
       "4   25    31    大悦城        大悦城控股集团股份有限公司  广东  深圳市        221.29亿      18.40亿   \n",
       "5   26    32   深桑达A        深圳市桑达实业股份有限公司  广东  深圳市        279.25亿       5.03亿   \n",
       "6   27    34   神州数码         神州数码集团股份有限公司  广东  深圳市        860.11亿    3451.21万   \n",
       "7   28    35   中国天楹           中国天楹股份有限公司  江苏  南通市        173.15亿       6.65亿   \n",
       "8   29    36   华联控股           华联控股股份有限公司  广东  深圳市          8.26亿       1.96亿   \n",
       "9   30    37   深南电A         深圳南山热电股份有限公司  广东  深圳市          5.89亿   -4972.40万   \n",
       "10  31    38    深大通         深圳大通实业股份有限公司  广东  深圳市         28.86亿      -3.36亿   \n",
       "11  32    39   中集集团  中国国际海运集装箱(集团)股份有限公司  广东  深圳市       1182.42亿      99.44亿   \n",
       "12  33    40   东旭蓝天        东旭蓝天新能源股份有限公司  广东  深圳市         28.16亿      -1.85亿   \n",
       "13  34    42   中洲控股      深圳市中洲投资控股股份有限公司  广东  深圳市         60.02亿       2.17亿   \n",
       "14  35    45   深纺织A      深圳市纺织(集团)股份有限公司  广东  深圳市         16.72亿       1.14亿   \n",
       "15  36    46   泛海控股           泛海控股股份有限公司  北京  北京市        140.97亿     -18.10亿   \n",
       "16  37    48   京基智农      深圳市京基智农时代股份有限公司  广东  深圳市         28.80亿       3.83亿   \n",
       "17  38    49   德赛电池      深圳市德赛电池科技股份有限公司  广东  深圳市        126.22亿       4.92亿   \n",
       "18  39    50   深天马A          天马微电子股份有限公司  广东  深圳市        239.62亿      14.10亿   \n",
       "19  40    55   方大集团           方大集团股份有限公司  广东  深圳市         24.40亿       1.86亿   \n",
       "\n",
       "      员工人数        上市日期 招股书  公司财报       行业分类  \\\n",
       "0    36676  1991-04-03  --   NaN         银行   \n",
       "1   140565  1991-01-29  --   NaN      房地产开发   \n",
       "2      264  1991-01-14  --   NaN       生物医药   \n",
       "3      629  1990-12-10  --   NaN  环保工程、物业管理   \n",
       "4      397  1992-04-27  --   NaN      房地产开发   \n",
       "5       76  1992-04-13  --   NaN       物业经营   \n",
       "6     2394  1992-05-07  --   NaN     轨道交通设备   \n",
       "7    13345  1991-06-25  --   NaN         综合   \n",
       "8      278  1995-10-27  --   NaN       园林工程   \n",
       "9     8035  1992-03-30  --   NaN      房地产开发   \n",
       "10   10558  1992-02-28  --   NaN         玻璃   \n",
       "11     153  1992-06-02  --   NaN      房地产开发   \n",
       "12   17216  1992-03-27  --   NaN        电视机   \n",
       "13      65  1992-03-31  --   NaN        自行车   \n",
       "14    1246  1992-10-12  --   NaN        软饮料   \n",
       "15    1132  1992-04-28  --   NaN      电子零部件   \n",
       "16   27051  1994-02-02  --   NaN  PC、服务器及硬件   \n",
       "17     984  1993-04-29  --   NaN      商品混凝土   \n",
       "18     302  1993-06-21  --   NaN       汽车销售   \n",
       "19    4901  1993-06-03  --   NaN       珠宝首饰   \n",
       "0     7384  1993-09-03  --   NaN         火电   \n",
       "1    38289  1993-08-09  --   NaN       医药商业   \n",
       "2     1668  1993-09-15  --   NaN      房地产开发   \n",
       "3     7397  1993-09-29  --   NaN      汽车零部件   \n",
       "4    10283  1993-10-08  --   NaN      房地产开发   \n",
       "5      476  1993-10-28  --   NaN       电子物流   \n",
       "6     4569  1994-05-09  --   NaN         贸易   \n",
       "7    60224  1994-04-08  --   NaN       垃圾发电   \n",
       "8      806  1994-06-17  --   NaN      房地产开发   \n",
       "9      403  1994-07-01  --   NaN         火电   \n",
       "10     147  1994-08-08  --   NaN       网络媒体   \n",
       "11   53928  1994-04-08  --   NaN       金属制品   \n",
       "12     572  1994-08-08  --   NaN        太阳能   \n",
       "13    2489  1994-09-21  --   NaN      房地产开发   \n",
       "14    1369  1994-08-15  --   NaN       显示器件   \n",
       "15    9601  1994-09-12  --   NaN      房地产开发   \n",
       "16    1305  1994-11-01  --   NaN         饲料   \n",
       "17    9833  1995-03-20  --   NaN         电池   \n",
       "18   37484  1995-03-15  --   NaN       显示器件   \n",
       "19    2245  1996-04-15  --   NaN       其他建材   \n",
       "\n",
       "                                                 产品类型  \\\n",
       "0                                              商业银行业务   \n",
       "1                                       房地产、物业管理、投资咨询   \n",
       "2                                    移动应用安全服务、移动互联网游戏   \n",
       "3                                      酒店经营、物业管理、环保业务   \n",
       "4                                                 房地产   \n",
       "5                       物业管理及停车费、房屋租赁、一次性口罩、纳米胶囊、杀菌纸巾   \n",
       "6                                                轨道交通   \n",
       "7                                     高新技术产业、生物医药、房地产   \n",
       "8                               燃气销售服务、园林建设、园林设计、苗木销售   \n",
       "9                    产城空间开发、物业管理服务、产业生态运营、餐饮业务、工程监理业务   \n",
       "10                          玻璃业务、电子玻璃及显示器件业务、太阳能及其他业务   \n",
       "11                                              房地产销售   \n",
       "12                          工贸业务、彩电业务、环保业务、白电业务、半导体业务   \n",
       "13                               自行车及零配件销售、锂电池材料、珠宝黄金   \n",
       "14                        食品和饮料及茶加工、粮油贸易及加工、粮油仓储物流及服务   \n",
       "15                     显示器、注塑件、EPS产品、物业租赁、废料收入、水电费及其他   \n",
       "16                                  存储半导体业务、自有产品、高端制造   \n",
       "17                                          房地产、工业、租赁   \n",
       "18                       汽车销售、汽车维修及检测、珠宝批发及零售、物业租赁及服务   \n",
       "19                        手表品牌业务、手表零售服务业务、精密科技业务、租赁业务   \n",
       "0                               燃煤、燃机、水电、风电、生态环保、综合燃气   \n",
       "1                                   药品、器械耗材、诊断试剂、仪器设备   \n",
       "2                                         住宅、商铺及车位、公寓   \n",
       "3                                                 零部件   \n",
       "4                 商品房销售、一级土地开发、投资物业及相关服务、酒店经营、物业及其他管理   \n",
       "5                               电子信息、房地产及租赁、电子商贸、电子物流   \n",
       "6              云管理服务及数字化方案提供商、信息技术应用创新业务、IT领域分销和增值服务商   \n",
       "7             综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置、环保装备制造   \n",
       "8                                     房产销售、房地产出租、酒店收入   \n",
       "9                                      能源行业、工程劳务、污泥干化   \n",
       "10                          煤炭、铁精粉贸易、广告发布、民间资本管理、保理业务   \n",
       "11   集装箱、道路运输车辆、能源、化工、液态食品装备、海洋工程、空港设备、物流服务、金融、房地产、重卡   \n",
       "12                               物业及房屋租赁、新能源、生态环保、供应链   \n",
       "13                                       房地产、服务、酒店、施工   \n",
       "14                                   物业及租赁、纺织品、偏光片、贸易   \n",
       "15                     房地产销售、物业出租、物业管理、装修工程、金融投资、金融贸易   \n",
       "16                                         农业、房地产业、金融   \n",
       "17  小型锂电池电源管理系统及封装集成业务、中型锂电池电源管理系统及封装集成业务、大型新能源汽车电...   \n",
       "18                                              电子元器件   \n",
       "19                   智慧幕墙系统及材料产业、轨道交通设备产业、新能源产业、房地产产业   \n",
       "\n",
       "                                                 主营业务  \n",
       "0                                 经有关监管机构批准的各项商业银行业务。  \n",
       "1                                         房地产开发和物业服务。  \n",
       "2                                         移动应用安全服务业务。  \n",
       "3                                  绿色低碳城市社区建设相关的服务业务。  \n",
       "4                                         从事房地产开发与销售。  \n",
       "5                                         物业管理和房屋租赁业等  \n",
       "6                     专业致力于提供轨道交通运营检修装备与数据、线路运营、维保服务。  \n",
       "7                             高新技术产业、生物医药产业、房地产及其他产业。  \n",
       "8                                   工程施工、园林绿化及环境综合整治。  \n",
       "9                  从事房地产开发经营，兼营物业管理、房屋租赁、出租车客运、餐饮服务等。  \n",
       "10  研发、生产制造和销售优质浮法玻璃和工程玻璃、太阳能玻璃和硅材料、光伏电池和组件等可再生能源产...  \n",
       "11                         从事房地产开发与经营、现代服务型产业用房运营与管理。  \n",
       "12                           消费类电子业务、工贸业务、环保业务、半导体业务。  \n",
       "13                                自行车及锂电池材料业务、珠宝黄金业务。  \n",
       "14                         批发零售业务、食品加工制造业务、租赁及商务服务业务。  \n",
       "15      精密注塑件的加工、销售;液晶显示器的加工、销售;轻型包装材料的加工、销售以及物业租赁业务。  \n",
       "16       致力于为全球客户提供技术研发、工艺设计、生产加工、采购管理、物流支持等电子产品制造服务。  \n",
       "17                          商品混凝土的生产和销售、房地产的开发及物业管理等。  \n",
       "18                  汽车销售、汽车检测、维修及配件销售；资源性资产管理；珠宝服务业务。  \n",
       "19  主要从事钟表及其零配件的设计、开发、制造、销售和维修业务，包括\"飞亚达\"表的产品经营和世界名...  \n",
       "0        各种常规能源和新能源的开发、生产、购销,以及城市固体废物处理、城市燃气供应和废水处理等。  \n",
       "1                                          医药分销和医药零售。  \n",
       "2                                             住宅地产开发。  \n",
       "3                                     汽车零部件的研发、生产和销售。  \n",
       "4      房地产开发、经营、销售、出租及管理住宅、商用物业，经营业态涵盖住宅、商业地产及部分产业地产。  \n",
       "5                    电子制造、电子商贸、电子物流服务等在内的一体化现代电子信息服务。  \n",
       "6             云管理服务及数字化方案提供商,信息技术应用创新业务,IT领域分销和增值服务商。  \n",
       "7            综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置和环保装备制造。  \n",
       "8                                  房地产开发和物业经营与服务管理业务。  \n",
       "9                      生产经营供电供热、从事发电厂(站)的相关技术咨询和技术服务。  \n",
       "10  以生物技术研究及创新医药、生物工程及后端衍生功能性健康消费品为主要发展方向，以供应链服务及民...  \n",
       "11          主要从事集装箱、能源、化工及液态食品装备、海洋工程装备、空港设备的制造及服务业务。  \n",
       "12                       光伏电站投资、建设、运营,房地产开发与销售、物业管理等。  \n",
       "13                                             房地产开发。  \n",
       "14            液晶显示用偏光片的研发、生产、营销，自有物业的经营管理业务及高档纺织服装业务。  \n",
       "15  项目投资,资产管理,房地产及旅游项目开发、物业管理(以上项目凭资质证经营),建筑设备、建筑装...  \n",
       "16             饲料生产、自来水供应、房地产开发、商业贸易、养殖业、房屋及土地租赁、金融等。  \n",
       "17                                  锂电池电源管理系统及封装集成业务。  \n",
       "18                       从事液晶显示器及相关材料、设备、产品的设计、制造、销售。  \n",
       "19              高端幕墙系统及材料产业、轨道交通屏蔽门设备产业、新能源产业、房地产等业务。  "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "dfs = pd.DataFrame()\n",
    "for page in range(1, 3):\n",
    "    df = pd.read_html('https://s.askci.com/stock/a/0-0?reportTime=2021-09-30&pageNum={}#QueryCondition'.format(page))\n",
    "    dfs = pd.concat([dfs,df[-1]])\n",
    "dfs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<!DOCTYPE html>\n",
      "<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/bdorz/baidu.min.css><title>ç¾åº¦ä¸ä¸ï¼ä½ å°±ç¥é</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class=\"bg s_ipt_wr\"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus=autofocus></span><span class=\"bg s_btn_wr\"><input type=submit id=su value=ç¾åº¦ä¸ä¸ class=\"bg s_btn\" autofocus></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>æ°é»</a> <a href=https://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>å°å¾</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>è§é¢</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>è´´å§</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>ç»å½</a> </noscript> <script>document.write('<a href=\"http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === \"\" ? \"?\" : \"&\")+ \"bdorz_come=1\")+ '\" name=\"tj_login\" class=\"lb\">ç»å½</a>');\n",
      "                </script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style=\"display: block;\">æ´å¤äº§å</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>å\n",
      "³äºç¾åº¦</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/>ä½¿ç¨ç¾åº¦åå¿\n",
      "è¯»</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>æè§åé¦</a>&nbsp;äº¬ICPè¯030173å·&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>\n",
      "\n"
     ]
    }
   ],
   "source": [
    "import requests  \n",
    "\n",
    "# Requests三板斧\n",
    "url = 'https://www.baidu.com/'\n",
    "# url = 'https://zhangkaiheng.gitee.io/'\n",
    "r = requests.get(url=url)\n",
    "\n",
    "print(r.text)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 解析数据\n",
    "\n",
    "常见解析数据库有很多：正则表达式Re、Beautifulsoup、Xpath、PyQuery、jsonpath等等\n",
    "\n",
    "这里我们以lxml库的Xpath简单上手为例\n",
    "\n",
    "- [官方文档](https://lxml.de/tutorial.html)\n",
    "- [lxml 中文文档](https://www.w3cschool.cn/lxml/)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['https://img2.doubanio.com/view/photo/s_ratio_poster/public/p480747492.jpg']"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests  \n",
    "\n",
    "headers = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62'\n",
    "}\n",
    "url = 'https://movie.douban.com/top250?start=0&filter='\n",
    "r = requests.get(url=url,headers=headers)\n",
    "\n",
    "# r.text\n",
    "from lxml import etree\n",
    "\n",
    "htmls = etree.HTML(r.text)\n",
    "title = htmls.xpath('//*[@id=\"content\"]/h1/text()')\n",
    "# title\n",
    "\n",
    "img_url = htmls.xpath('//*[@id=\"content\"]/div/div[1]/ol/li[1]/div/div[1]/a/img/@src')\n",
    "# img_url\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 保存数据\n",
    "\n",
    "保存数据可以保存为csv格式、xls、xlsx格式、hfs格式甚至数据量大的话可以保存到数据库：Mongodb、MySql、Sqlite3、Redis等\n",
    "\n",
    "这里我们保存为csv数据为例\n",
    "\n",
    "优点：\n",
    "- 可预览，方便直接发给别人\n",
    "- 相较于Excel更小、更精巧\n",
    "- 没有最大行数限制\n",
    "\n",
    "缺点：\n",
    "- 数据量大时，读取速度就很慢，此时应转为hfs格式或者保存到数据库中\n",
    "- 可能会打开乱码——编码格式不统一"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>index</th>\n",
       "      <th>name</th>\n",
       "      <th>score</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>小明</td>\n",
       "      <td>100</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>小红</td>\n",
       "      <td>99.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>小刚</td>\n",
       "      <td>99.89</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   index name  score\n",
       "0      1   小明    100\n",
       "1      2   小红   99.9\n",
       "2      3   小刚  99.89"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "datas = [['石河子大学','TOP1'],\n",
    "        ['金融学', '牛B'],\n",
    "        [100,'大学课程'],\n",
    "        ]\n",
    "\n",
    "df = pd.DataFrame(datas)\n",
    "# df\n",
    "\n",
    "datas = {\n",
    "    'index': [1,2,3],\n",
    "    'name': ['小明', '小红', '小刚'],\n",
    "    'score': ['100', '99.9', '99.89']\n",
    "}\n",
    "df = pd.DataFrame(datas)\n",
    "# df\n",
    "\n",
    "# df.to_csv('datas.csv',index=False)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 实战1——爬取豆瓣Top250\n",
    "\n",
    "背景：你的Boss需要获取豆瓣电影数据来挖掘电影行业商业价值\n",
    "\n",
    "网络爬取目标：[豆瓣电影 Top 250](https://movie.douban.com/top250)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>rank_num</th>\n",
       "      <th>movie_name</th>\n",
       "      <th>actors</th>\n",
       "      <th>scores</th>\n",
       "      <th>comments</th>\n",
       "      <th>release_time</th>\n",
       "      <th>inq</th>\n",
       "      <th>imgs_url</th>\n",
       "      <th>details_url</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>肖申克的救赎</td>\n",
       "      <td>导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...</td>\n",
       "      <td>9.7</td>\n",
       "      <td>2530019</td>\n",
       "      <td>\\n                            1994 / 美国 / 犯罪 剧...</td>\n",
       "      <td>希望让人自由。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292052/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>霸王别姬</td>\n",
       "      <td>导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1880733</td>\n",
       "      <td>\\n                            1993 / 中国大陆 中国香港...</td>\n",
       "      <td>风华绝代。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291546/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>阿甘正传</td>\n",
       "      <td>导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>1900765</td>\n",
       "      <td>\\n                            1994 / 美国 / 剧情 爱...</td>\n",
       "      <td>一部美国近现代史。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292720/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>泰坦尼克号</td>\n",
       "      <td>导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1862508</td>\n",
       "      <td>\\n                            1997 / 美国 墨西哥 澳大...</td>\n",
       "      <td>失去的才是永恒的。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292722/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>这个杀手不太冷</td>\n",
       "      <td>导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>2060633</td>\n",
       "      <td>\\n                            1994 / 法国 美国 / 剧...</td>\n",
       "      <td>怪蜀黍和小萝莉不得不说的故事。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295644/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>美丽人生</td>\n",
       "      <td>导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1166097</td>\n",
       "      <td>\\n                            1997 / 意大利 / 剧情 ...</td>\n",
       "      <td>最美的谎言。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292063/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>千与千寻</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1982044</td>\n",
       "      <td>\\n                            2001 / 日本 / 剧情 动...</td>\n",
       "      <td>最好的宫崎骏，最好的久石让。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291561/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>辛德勒的名单</td>\n",
       "      <td>导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>972642</td>\n",
       "      <td>\\n                            1993 / 美国 / 剧情 历...</td>\n",
       "      <td>拯救一个人，就是拯救整个世界。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295124/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>盗梦空间</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1825376</td>\n",
       "      <td>\\n                            2010 / 美国 英国 / 剧...</td>\n",
       "      <td>诺兰给了我们一场无法盗取的梦。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3541415/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>忠犬八公的故事</td>\n",
       "      <td>导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1252265</td>\n",
       "      <td>\\n                            2009 / 美国 英国 / 剧...</td>\n",
       "      <td>永远都不能忘记你所爱的人。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3011091/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>星际穿越</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1506100</td>\n",
       "      <td>\\n                            2014 / 美国 英国 加拿大...</td>\n",
       "      <td>爱是一种力量，让我们超越时空感知它的存在。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1889243/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>楚门的世界</td>\n",
       "      <td>导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1427960</td>\n",
       "      <td>\\n                            1998 / 美国 / 剧情 科...</td>\n",
       "      <td>如果再也不能见到你，祝你早安，午安，晚安。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292064/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>海上钢琴师</td>\n",
       "      <td>导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1483105</td>\n",
       "      <td>\\n                            1998 / 意大利 / 剧情 ...</td>\n",
       "      <td>每个人都要走一条自己坚定了的路，就算是粉身碎骨。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292001/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>三傻大闹宝莱坞</td>\n",
       "      <td>导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1660083</td>\n",
       "      <td>\\n                            2009 / 印度 / 剧情 喜...</td>\n",
       "      <td>英俊版憨豆，高情商版谢耳朵。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3793023/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>机器人总动员</td>\n",
       "      <td>导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1169703</td>\n",
       "      <td>\\n                            2008 / 美国 / 科幻 动...</td>\n",
       "      <td>小瓦力，大人生。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/2131459/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>放牛班的春天</td>\n",
       "      <td>导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1154339</td>\n",
       "      <td>\\n                            2004 / 法国 瑞士 德国 ...</td>\n",
       "      <td>天籁一般的童声，是最接近上帝的存在。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291549/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>无间道</td>\n",
       "      <td>导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1155713</td>\n",
       "      <td>\\n                            2002 / 中国香港 / 剧情...</td>\n",
       "      <td>香港电影史上永不过时的杰作。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1307914/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>疯狂动物城</td>\n",
       "      <td>导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1657723</td>\n",
       "      <td>\\n                            2016 / 美国 / 喜剧 动...</td>\n",
       "      <td>迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/25662329/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>大话西游之大圣娶亲</td>\n",
       "      <td>导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1354989</td>\n",
       "      <td>\\n                            1995 / 中国香港 中国大陆...</td>\n",
       "      <td>一生所爱。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292213/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>熔炉</td>\n",
       "      <td>导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>824212</td>\n",
       "      <td>\\n                            2011 / 韩国 / 剧情\\n...</td>\n",
       "      <td>我们一路奋战不是为了改变世界，而是为了不让世界改变我们。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/5912992/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>21</td>\n",
       "      <td>教父</td>\n",
       "      <td>导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>830641</td>\n",
       "      <td>\\n                            1972 / 美国 / 剧情 犯...</td>\n",
       "      <td>千万不要记恨你的对手，这样会让你失去理智。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291841/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>22</td>\n",
       "      <td>当幸福来敲门</td>\n",
       "      <td>导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1342275</td>\n",
       "      <td>\\n                            2006 / 美国 / 剧情 传...</td>\n",
       "      <td>平民励志片。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1849031/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>23</td>\n",
       "      <td>控方证人</td>\n",
       "      <td>导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>422666</td>\n",
       "      <td>\\n                            1957 / 美国 / 剧情 犯...</td>\n",
       "      <td>比利·怀德满分作品。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1296141/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>24</td>\n",
       "      <td>龙猫</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1119207</td>\n",
       "      <td>\\n                            1988 / 日本 / 动画 奇...</td>\n",
       "      <td>人人心中都有个龙猫，童年就永远不会消失。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291560/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>25</td>\n",
       "      <td>怦然心动</td>\n",
       "      <td>导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1605072</td>\n",
       "      <td>\\n                            2010 / 美国 / 剧情 喜...</td>\n",
       "      <td>真正的幸福是来自内心深处。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3319755/</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   rank_num movie_name                                             actors  \\\n",
       "0         1     肖申克的救赎  导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...   \n",
       "1         2       霸王别姬  导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...   \n",
       "2         3       阿甘正传  导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...   \n",
       "3         4      泰坦尼克号  导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...   \n",
       "4         5    这个杀手不太冷  导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...   \n",
       "5         6       美丽人生  导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...   \n",
       "6         7       千与千寻  导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...   \n",
       "7         8     辛德勒的名单  导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...   \n",
       "8         9       盗梦空间  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...   \n",
       "9        10    忠犬八公的故事  导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...   \n",
       "10       11       星际穿越  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...   \n",
       "11       12      楚门的世界  导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...   \n",
       "12       13      海上钢琴师  导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...   \n",
       "13       14    三傻大闹宝莱坞  导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...   \n",
       "14       15     机器人总动员  导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...   \n",
       "15       16     放牛班的春天  导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...   \n",
       "16       17        无间道                导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生   \n",
       "17       18      疯狂动物城  导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...   \n",
       "18       19  大话西游之大圣娶亲  导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...   \n",
       "19       20         熔炉  导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...   \n",
       "20       21         教父  导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...   \n",
       "21       22     当幸福来敲门  导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...   \n",
       "22       23       控方证人  导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...   \n",
       "23       24         龙猫  导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...   \n",
       "24       25       怦然心动  导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...   \n",
       "\n",
       "   scores comments                                       release_time  \\\n",
       "0     9.7  2530019  \\n                            1994 / 美国 / 犯罪 剧...   \n",
       "1     9.6  1880733  \\n                            1993 / 中国大陆 中国香港...   \n",
       "2     9.5  1900765  \\n                            1994 / 美国 / 剧情 爱...   \n",
       "3     9.4  1862508  \\n                            1997 / 美国 墨西哥 澳大...   \n",
       "4     9.4  2060633  \\n                            1994 / 法国 美国 / 剧...   \n",
       "5     9.6  1166097  \\n                            1997 / 意大利 / 剧情 ...   \n",
       "6     9.4  1982044  \\n                            2001 / 日本 / 剧情 动...   \n",
       "7     9.5   972642  \\n                            1993 / 美国 / 剧情 历...   \n",
       "8     9.3  1825376  \\n                            2010 / 美国 英国 / 剧...   \n",
       "9     9.4  1252265  \\n                            2009 / 美国 英国 / 剧...   \n",
       "10    9.4  1506100  \\n                            2014 / 美国 英国 加拿大...   \n",
       "11    9.3  1427960  \\n                            1998 / 美国 / 剧情 科...   \n",
       "12    9.3  1483105  \\n                            1998 / 意大利 / 剧情 ...   \n",
       "13    9.2  1660083  \\n                            2009 / 印度 / 剧情 喜...   \n",
       "14    9.3  1169703  \\n                            2008 / 美国 / 科幻 动...   \n",
       "15    9.3  1154339  \\n                            2004 / 法国 瑞士 德国 ...   \n",
       "16    9.3  1155713  \\n                            2002 / 中国香港 / 剧情...   \n",
       "17    9.2  1657723  \\n                            2016 / 美国 / 喜剧 动...   \n",
       "18    9.2  1354989  \\n                            1995 / 中国香港 中国大陆...   \n",
       "19    9.3   824212  \\n                            2011 / 韩国 / 剧情\\n...   \n",
       "20    9.3   830641  \\n                            1972 / 美国 / 剧情 犯...   \n",
       "21    9.2  1342275  \\n                            2006 / 美国 / 剧情 传...   \n",
       "22    9.6   422666  \\n                            1957 / 美国 / 剧情 犯...   \n",
       "23    9.2  1119207  \\n                            1988 / 日本 / 动画 奇...   \n",
       "24    9.1  1605072  \\n                            2010 / 美国 / 剧情 喜...   \n",
       "\n",
       "                                inq  \\\n",
       "0                           希望让人自由。   \n",
       "1                             风华绝代。   \n",
       "2                         一部美国近现代史。   \n",
       "3                        失去的才是永恒的。    \n",
       "4                   怪蜀黍和小萝莉不得不说的故事。   \n",
       "5                            最美的谎言。   \n",
       "6                   最好的宫崎骏，最好的久石让。    \n",
       "7                   拯救一个人，就是拯救整个世界。   \n",
       "8                   诺兰给了我们一场无法盗取的梦。   \n",
       "9                     永远都不能忘记你所爱的人。   \n",
       "10            爱是一种力量，让我们超越时空感知它的存在。   \n",
       "11            如果再也不能见到你，祝你早安，午安，晚安。   \n",
       "12        每个人都要走一条自己坚定了的路，就算是粉身碎骨。    \n",
       "13                   英俊版憨豆，高情商版谢耳朵。   \n",
       "14                         小瓦力，大人生。   \n",
       "15              天籁一般的童声，是最接近上帝的存在。    \n",
       "16                   香港电影史上永不过时的杰作。   \n",
       "17  迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。   \n",
       "18                            一生所爱。   \n",
       "19     我们一路奋战不是为了改变世界，而是为了不让世界改变我们。   \n",
       "20            千万不要记恨你的对手，这样会让你失去理智。   \n",
       "21                          平民励志片。    \n",
       "22                       比利·怀德满分作品。   \n",
       "23             人人心中都有个龙猫，童年就永远不会消失。   \n",
       "24                    真正的幸福是来自内心深处。   \n",
       "\n",
       "                                             imgs_url  \\\n",
       "0   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "1   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "2   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "3   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "4   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "5   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "6   https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "7   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "8   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "9   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "10  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "11  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "12  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "13  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "14  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "15  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "16  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "17  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "18  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "19  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "20  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "21  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "22  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "23  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "24  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "\n",
       "                                   details_url  \n",
       "0    https://movie.douban.com/subject/1292052/  \n",
       "1    https://movie.douban.com/subject/1291546/  \n",
       "2    https://movie.douban.com/subject/1292720/  \n",
       "3    https://movie.douban.com/subject/1292722/  \n",
       "4    https://movie.douban.com/subject/1295644/  \n",
       "5    https://movie.douban.com/subject/1292063/  \n",
       "6    https://movie.douban.com/subject/1291561/  \n",
       "7    https://movie.douban.com/subject/1295124/  \n",
       "8    https://movie.douban.com/subject/3541415/  \n",
       "9    https://movie.douban.com/subject/3011091/  \n",
       "10   https://movie.douban.com/subject/1889243/  \n",
       "11   https://movie.douban.com/subject/1292064/  \n",
       "12   https://movie.douban.com/subject/1292001/  \n",
       "13   https://movie.douban.com/subject/3793023/  \n",
       "14   https://movie.douban.com/subject/2131459/  \n",
       "15   https://movie.douban.com/subject/1291549/  \n",
       "16   https://movie.douban.com/subject/1307914/  \n",
       "17  https://movie.douban.com/subject/25662329/  \n",
       "18   https://movie.douban.com/subject/1292213/  \n",
       "19   https://movie.douban.com/subject/5912992/  \n",
       "20   https://movie.douban.com/subject/1291841/  \n",
       "21   https://movie.douban.com/subject/1849031/  \n",
       "22   https://movie.douban.com/subject/1296141/  \n",
       "23   https://movie.douban.com/subject/1291560/  \n",
       "24   https://movie.douban.com/subject/3319755/  "
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests ### 按照思路爬取（请求解析保存）单页\n",
    "headers = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62',    \n",
    "}\n",
    "res = requests.get(url='https://movie.douban.com/top250',headers=headers)\n",
    "# res.text\n",
    "\n",
    "from lxml import etree\n",
    "html = etree.HTML(res.text)\n",
    "rank_num = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/em/text()')\n",
    "movie_name = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/span[1]/text()')\n",
    "actors = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[1]')\n",
    "actors = [i.strip() for i in actors]\n",
    "scores = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[2]/text()')\n",
    "comments = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[4]/text()')\n",
    "comments = [i.strip('人评价') for i in comments]\n",
    "release_time = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[2]')\n",
    "inq = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[2]/span/text()')\n",
    "imgs_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/a/img/@src')\n",
    "details_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/@href')\n",
    "datas = {\n",
    "    'rank_num': rank_num,\n",
    "    'movie_name': movie_name,\n",
    "    'actors': actors,\n",
    "    'scores': scores,\n",
    "    'comments': comments,\n",
    "    'release_time': release_time,\n",
    "    'inq': inq,\n",
    "    'imgs_url': imgs_url,\n",
    "    'details_url': details_url\n",
    "}\n",
    "# datas\n",
    "\n",
    "import pandas as pd\n",
    "\n",
    "df = pd.DataFrame(datas)\n",
    "# df\n",
    "\n",
    "df.to_csv('datas.csv', index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>rank_num</th>\n",
       "      <th>movie_name</th>\n",
       "      <th>actors</th>\n",
       "      <th>scores</th>\n",
       "      <th>comments</th>\n",
       "      <th>release_time</th>\n",
       "      <th>inq</th>\n",
       "      <th>imgs_url</th>\n",
       "      <th>details_url</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>肖申克的救赎</td>\n",
       "      <td>导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...</td>\n",
       "      <td>9.7</td>\n",
       "      <td>2530093</td>\n",
       "      <td>\\n                            1994 / 美国 / 犯罪 剧...</td>\n",
       "      <td>希望让人自由。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292052/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>霸王别姬</td>\n",
       "      <td>导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1880778</td>\n",
       "      <td>\\n                            1993 / 中国大陆 中国香港...</td>\n",
       "      <td>风华绝代。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291546/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>阿甘正传</td>\n",
       "      <td>导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>1900765</td>\n",
       "      <td>\\n                            1994 / 美国 / 剧情 爱...</td>\n",
       "      <td>一部美国近现代史。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292720/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>泰坦尼克号</td>\n",
       "      <td>导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1862552</td>\n",
       "      <td>\\n                            1997 / 美国 墨西哥 澳大...</td>\n",
       "      <td>失去的才是永恒的。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292722/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>这个杀手不太冷</td>\n",
       "      <td>导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>2060659</td>\n",
       "      <td>\\n                            1994 / 法国 美国 / 剧...</td>\n",
       "      <td>怪蜀黍和小萝莉不得不说的故事。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295644/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>美丽人生</td>\n",
       "      <td>导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1166135</td>\n",
       "      <td>\\n                            1997 / 意大利 / 剧情 ...</td>\n",
       "      <td>最美的谎言。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292063/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>千与千寻</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1982091</td>\n",
       "      <td>\\n                            2001 / 日本 / 剧情 动...</td>\n",
       "      <td>最好的宫崎骏，最好的久石让。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291561/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>辛德勒的名单</td>\n",
       "      <td>导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>972663</td>\n",
       "      <td>\\n                            1993 / 美国 / 剧情 历...</td>\n",
       "      <td>拯救一个人，就是拯救整个世界。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295124/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>盗梦空间</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1825425</td>\n",
       "      <td>\\n                            2010 / 美国 英国 / 剧...</td>\n",
       "      <td>诺兰给了我们一场无法盗取的梦。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3541415/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>忠犬八公的故事</td>\n",
       "      <td>导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1252291</td>\n",
       "      <td>\\n                            2009 / 美国 英国 / 剧...</td>\n",
       "      <td>永远都不能忘记你所爱的人。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3011091/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>星际穿越</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1506148</td>\n",
       "      <td>\\n                            2014 / 美国 英国 加拿大...</td>\n",
       "      <td>爱是一种力量，让我们超越时空感知它的存在。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1889243/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>楚门的世界</td>\n",
       "      <td>导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1428009</td>\n",
       "      <td>\\n                            1998 / 美国 / 剧情 科...</td>\n",
       "      <td>如果再也不能见到你，祝你早安，午安，晚安。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292064/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>海上钢琴师</td>\n",
       "      <td>导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1483131</td>\n",
       "      <td>\\n                            1998 / 意大利 / 剧情 ...</td>\n",
       "      <td>每个人都要走一条自己坚定了的路，就算是粉身碎骨。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292001/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>三傻大闹宝莱坞</td>\n",
       "      <td>导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1660113</td>\n",
       "      <td>\\n                            2009 / 印度 / 剧情 喜...</td>\n",
       "      <td>英俊版憨豆，高情商版谢耳朵。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3793023/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>机器人总动员</td>\n",
       "      <td>导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1169718</td>\n",
       "      <td>\\n                            2008 / 美国 / 科幻 动...</td>\n",
       "      <td>小瓦力，大人生。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/2131459/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>放牛班的春天</td>\n",
       "      <td>导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1154369</td>\n",
       "      <td>\\n                            2004 / 法国 瑞士 德国 ...</td>\n",
       "      <td>天籁一般的童声，是最接近上帝的存在。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291549/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>无间道</td>\n",
       "      <td>导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1155782</td>\n",
       "      <td>\\n                            2002 / 中国香港 / 剧情...</td>\n",
       "      <td>香港电影史上永不过时的杰作。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1307914/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>疯狂动物城</td>\n",
       "      <td>导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1657773</td>\n",
       "      <td>\\n                            2016 / 美国 / 喜剧 动...</td>\n",
       "      <td>迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/25662329/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>大话西游之大圣娶亲</td>\n",
       "      <td>导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1355011</td>\n",
       "      <td>\\n                            1995 / 中国香港 中国大陆...</td>\n",
       "      <td>一生所爱。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292213/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>熔炉</td>\n",
       "      <td>导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>824240</td>\n",
       "      <td>\\n                            2011 / 韩国 / 剧情\\n...</td>\n",
       "      <td>我们一路奋战不是为了改变世界，而是为了不让世界改变我们。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/5912992/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>21</td>\n",
       "      <td>教父</td>\n",
       "      <td>导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>830675</td>\n",
       "      <td>\\n                            1972 / 美国 / 剧情 犯...</td>\n",
       "      <td>千万不要记恨你的对手，这样会让你失去理智。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291841/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>22</td>\n",
       "      <td>当幸福来敲门</td>\n",
       "      <td>导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1342311</td>\n",
       "      <td>\\n                            2006 / 美国 / 剧情 传...</td>\n",
       "      <td>平民励志片。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1849031/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>23</td>\n",
       "      <td>控方证人</td>\n",
       "      <td>导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>422680</td>\n",
       "      <td>\\n                            1957 / 美国 / 剧情 犯...</td>\n",
       "      <td>比利·怀德满分作品。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1296141/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>24</td>\n",
       "      <td>龙猫</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1119232</td>\n",
       "      <td>\\n                            1988 / 日本 / 动画 奇...</td>\n",
       "      <td>人人心中都有个龙猫，童年就永远不会消失。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291560/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>25</td>\n",
       "      <td>怦然心动</td>\n",
       "      <td>导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1605091</td>\n",
       "      <td>\\n                            2010 / 美国 / 剧情 喜...</td>\n",
       "      <td>真正的幸福是来自内心深处。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3319755/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>26</td>\n",
       "      <td>触不可及</td>\n",
       "      <td>导演: 奥利维·那卡什 Olivier Nakache / 艾力克·托兰达 Eric Tol...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>914955</td>\n",
       "      <td>\\n                            2011 / 法国 / 剧情 喜...</td>\n",
       "      <td>满满温情的高雅喜剧。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/6786002/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>27</td>\n",
       "      <td>末代皇帝</td>\n",
       "      <td>导演: 贝纳尔多·贝托鲁奇 Bernardo Bertolucci   主演: 尊龙 Joh...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>738447</td>\n",
       "      <td>\\n                            1987 / 英国 意大利 中国...</td>\n",
       "      <td>“不要跟我比惨，我比你更惨”再适合这部电影不过了。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1293172/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>28</td>\n",
       "      <td>蝙蝠侠：黑暗骑士</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 克里斯蒂安·贝尔 ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>919650</td>\n",
       "      <td>\\n                            2008 / 美国 英国 / 剧...</td>\n",
       "      <td>无尽的黑暗。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1851857/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>29</td>\n",
       "      <td>寻梦环游记</td>\n",
       "      <td>导演: 李·昂克里奇 Lee Unkrich / 阿德里安·莫利纳 Adrian Molin...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1423375</td>\n",
       "      <td>\\n                            2017 / 美国 / 喜剧 动...</td>\n",
       "      <td>死亡不是真的逝去，遗忘才是永恒的消亡。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/20495023/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>30</td>\n",
       "      <td>活着</td>\n",
       "      <td>导演: 张艺谋 Yimou Zhang   主演: 葛优 You Ge / 巩俐 Li Go...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>719298</td>\n",
       "      <td>\\n                            1994 / 中国大陆 中国香港...</td>\n",
       "      <td>张艺谋最好的电影。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292365/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>31</td>\n",
       "      <td>哈利·波特与魔法石</td>\n",
       "      <td>导演: Chris Columbus   主演: Daniel Radcliffe / Em...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>991744</td>\n",
       "      <td>\\n                            2001 / 美国 英国 / 奇...</td>\n",
       "      <td>童话世界的开端。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295038/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>32</td>\n",
       "      <td>指环王3：王者无敌</td>\n",
       "      <td>导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>702952</td>\n",
       "      <td>\\n                            2003 / 美国 新西兰 / ...</td>\n",
       "      <td>史诗的终章。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291552/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>33</td>\n",
       "      <td>乱世佳人</td>\n",
       "      <td>导演: 维克多·弗莱明 Victor Fleming / 乔治·库克 George Cuko...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>607506</td>\n",
       "      <td>\\n                            1939 / 美国 / 剧情 历...</td>\n",
       "      <td>Tomorrow is another day.</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1300267/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>34</td>\n",
       "      <td>素媛</td>\n",
       "      <td>导演: 李濬益 Jun-ik Lee   主演: 薛景求 Kyung-gu Sol / 严志...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>592134</td>\n",
       "      <td>\\n                            2013 / 韩国 / 剧情\\n...</td>\n",
       "      <td>受过伤害的人总是笑得最开心，因为他们不愿意让身边的人承受一样的痛苦。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/21937452/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>35</td>\n",
       "      <td>飞屋环游记</td>\n",
       "      <td>导演: 彼特·道格特 Pete Docter / 鲍勃·彼德森 Bob Peterson  ...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1168576</td>\n",
       "      <td>\\n                            2009 / 美国 / 剧情 喜...</td>\n",
       "      <td>最后那些最无聊的事情，才是最值得怀念的。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/2129039/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>36</td>\n",
       "      <td>摔跤吧！爸爸</td>\n",
       "      <td>导演: 涅提·蒂瓦里 Nitesh Tiwari   主演: 阿米尔·汗 Aamir Kha...</td>\n",
       "      <td>9.0</td>\n",
       "      <td>1387618</td>\n",
       "      <td>\\n                            2016 / 印度 / 剧情 传...</td>\n",
       "      <td>你不是在为你一个人战斗，你要让千千万万的女性看到女生并不是只能相夫教子。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/26387939/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>37</td>\n",
       "      <td>何以为家</td>\n",
       "      <td>导演: 娜丁·拉巴基 Nadine Labaki   主演: 扎因·拉费阿 Zain al-...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>903288</td>\n",
       "      <td>\\n                            2018 / 黎巴嫩 美国 法国...</td>\n",
       "      <td>凝视卑弱生命，用电影改变命运。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/30170448/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>38</td>\n",
       "      <td>我不是药神</td>\n",
       "      <td>导演: 文牧野 Muye Wen   主演: 徐峥 Zheng Xu / 王传君 Chuan...</td>\n",
       "      <td>9.0</td>\n",
       "      <td>1847631</td>\n",
       "      <td>\\n                            2018 / 中国大陆 / 剧情...</td>\n",
       "      <td>对我们国家而言，这样的电影多一部是一部。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/26752088/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>39</td>\n",
       "      <td>十二怒汉</td>\n",
       "      <td>导演: Sidney Lumet   主演: 亨利·方达 Henry Fonda / 马丁·...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>412413</td>\n",
       "      <td>\\n                            1957 / 美国 / 剧情\\n...</td>\n",
       "      <td>1957年的理想主义。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1293182/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>40</td>\n",
       "      <td>哈尔的移动城堡</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 倍赏千惠子 Chieko Bais...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>880717</td>\n",
       "      <td>\\n                            2004 / 日本 / 动画 奇...</td>\n",
       "      <td>带着心爱的人在天空飞翔。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1308807/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>41</td>\n",
       "      <td>少年派的奇幻漂流</td>\n",
       "      <td>导演: 李安 Ang Lee   主演: 苏拉·沙玛 Suraj Sharma / 伊尔凡·...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1208012</td>\n",
       "      <td>\\n                            2012 / 美国 中国台湾 英...</td>\n",
       "      <td>瑰丽壮观、无人能及的冒险之旅。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1929463/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>42</td>\n",
       "      <td>鬼子来了</td>\n",
       "      <td>导演: 姜文 Wen Jiang   主演: 姜文 Wen Jiang / 香川照之 Ter...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>543225</td>\n",
       "      <td>\\n                            2000 / 中国大陆 / 剧情...</td>\n",
       "      <td>对敌人的仁慈，就是对自己残忍。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291858/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>43</td>\n",
       "      <td>大话西游之月光宝盒</td>\n",
       "      <td>导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...</td>\n",
       "      <td>9.0</td>\n",
       "      <td>1079689</td>\n",
       "      <td>\\n                            1995 / 中国香港 中国大陆...</td>\n",
       "      <td>旷古烁今。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1299398/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>44</td>\n",
       "      <td>天空之城</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 田中真弓 Mayumi Tanak...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>728716</td>\n",
       "      <td>\\n                            1986 / 日本 / 动画 奇...</td>\n",
       "      <td>对天空的追逐，永不停止。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291583/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>45</td>\n",
       "      <td>猫鼠游戏</td>\n",
       "      <td>导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 莱昂纳多·迪卡普里...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>826923</td>\n",
       "      <td>\\n                            2002 / 美国 加拿大 / ...</td>\n",
       "      <td>骗子大师和执著警探的你追我跑故事。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1305487/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>46</td>\n",
       "      <td>天堂电影院</td>\n",
       "      <td>导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 菲利普·努瓦雷 ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>605499</td>\n",
       "      <td>\\n                            1988 / 意大利 法国 / ...</td>\n",
       "      <td>那些吻戏，那些青春，都在影院的黑暗里被泪水冲刷得无比清晰。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291828/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>47</td>\n",
       "      <td>闻香识女人</td>\n",
       "      <td>导演: 马丁·布莱斯 Martin Brest   主演: 阿尔·帕西诺 Al Pacino...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>759945</td>\n",
       "      <td>\\n                            1992 / 美国 / 剧情\\n...</td>\n",
       "      <td>史上最美的探戈。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1298624/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>48</td>\n",
       "      <td>指环王2：双塔奇兵</td>\n",
       "      <td>导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>655204</td>\n",
       "      <td>\\n                            2002 / 美国 新西兰 / ...</td>\n",
       "      <td>承前启后的史诗篇章。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291572/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>49</td>\n",
       "      <td>罗马假日</td>\n",
       "      <td>导演: 威廉·惠勒 William Wyler   主演: 奥黛丽·赫本 Audrey He...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>848835</td>\n",
       "      <td>\\n                            1953 / 美国 / 喜剧 剧...</td>\n",
       "      <td>爱情哪怕只有一天。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1293839/</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>50</td>\n",
       "      <td>钢琴家</td>\n",
       "      <td>导演: 罗曼·波兰斯基 Roman Polanski   主演: 艾德里安·布洛迪 Adri...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>510873</td>\n",
       "      <td>\\n                            2002 / 英国 法国 波兰 ...</td>\n",
       "      <td>音乐能化解仇恨。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1296736/</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   rank_num movie_name                                             actors  \\\n",
       "0         1     肖申克的救赎  导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...   \n",
       "1         2       霸王别姬  导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...   \n",
       "2         3       阿甘正传  导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...   \n",
       "3         4      泰坦尼克号  导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...   \n",
       "4         5    这个杀手不太冷  导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...   \n",
       "5         6       美丽人生  导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...   \n",
       "6         7       千与千寻  导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...   \n",
       "7         8     辛德勒的名单  导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...   \n",
       "8         9       盗梦空间  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...   \n",
       "9        10    忠犬八公的故事  导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...   \n",
       "10       11       星际穿越  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...   \n",
       "11       12      楚门的世界  导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...   \n",
       "12       13      海上钢琴师  导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...   \n",
       "13       14    三傻大闹宝莱坞  导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...   \n",
       "14       15     机器人总动员  导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...   \n",
       "15       16     放牛班的春天  导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...   \n",
       "16       17        无间道                导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生   \n",
       "17       18      疯狂动物城  导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...   \n",
       "18       19  大话西游之大圣娶亲  导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...   \n",
       "19       20         熔炉  导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...   \n",
       "20       21         教父  导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...   \n",
       "21       22     当幸福来敲门  导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...   \n",
       "22       23       控方证人  导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...   \n",
       "23       24         龙猫  导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...   \n",
       "24       25       怦然心动  导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...   \n",
       "0        26       触不可及  导演: 奥利维·那卡什 Olivier Nakache / 艾力克·托兰达 Eric Tol...   \n",
       "1        27       末代皇帝  导演: 贝纳尔多·贝托鲁奇 Bernardo Bertolucci   主演: 尊龙 Joh...   \n",
       "2        28   蝙蝠侠：黑暗骑士  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 克里斯蒂安·贝尔 ...   \n",
       "3        29      寻梦环游记  导演: 李·昂克里奇 Lee Unkrich / 阿德里安·莫利纳 Adrian Molin...   \n",
       "4        30         活着  导演: 张艺谋 Yimou Zhang   主演: 葛优 You Ge / 巩俐 Li Go...   \n",
       "5        31  哈利·波特与魔法石  导演: Chris Columbus   主演: Daniel Radcliffe / Em...   \n",
       "6        32  指环王3：王者无敌  导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...   \n",
       "7        33       乱世佳人  导演: 维克多·弗莱明 Victor Fleming / 乔治·库克 George Cuko...   \n",
       "8        34         素媛  导演: 李濬益 Jun-ik Lee   主演: 薛景求 Kyung-gu Sol / 严志...   \n",
       "9        35      飞屋环游记  导演: 彼特·道格特 Pete Docter / 鲍勃·彼德森 Bob Peterson  ...   \n",
       "10       36     摔跤吧！爸爸  导演: 涅提·蒂瓦里 Nitesh Tiwari   主演: 阿米尔·汗 Aamir Kha...   \n",
       "11       37       何以为家  导演: 娜丁·拉巴基 Nadine Labaki   主演: 扎因·拉费阿 Zain al-...   \n",
       "12       38      我不是药神  导演: 文牧野 Muye Wen   主演: 徐峥 Zheng Xu / 王传君 Chuan...   \n",
       "13       39       十二怒汉  导演: Sidney Lumet   主演: 亨利·方达 Henry Fonda / 马丁·...   \n",
       "14       40    哈尔的移动城堡  导演: 宫崎骏 Hayao Miyazaki   主演: 倍赏千惠子 Chieko Bais...   \n",
       "15       41   少年派的奇幻漂流  导演: 李安 Ang Lee   主演: 苏拉·沙玛 Suraj Sharma / 伊尔凡·...   \n",
       "16       42       鬼子来了  导演: 姜文 Wen Jiang   主演: 姜文 Wen Jiang / 香川照之 Ter...   \n",
       "17       43  大话西游之月光宝盒  导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...   \n",
       "18       44       天空之城  导演: 宫崎骏 Hayao Miyazaki   主演: 田中真弓 Mayumi Tanak...   \n",
       "19       45       猫鼠游戏  导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 莱昂纳多·迪卡普里...   \n",
       "20       46      天堂电影院  导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 菲利普·努瓦雷 ...   \n",
       "21       47      闻香识女人  导演: 马丁·布莱斯 Martin Brest   主演: 阿尔·帕西诺 Al Pacino...   \n",
       "22       48  指环王2：双塔奇兵  导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...   \n",
       "23       49       罗马假日  导演: 威廉·惠勒 William Wyler   主演: 奥黛丽·赫本 Audrey He...   \n",
       "24       50        钢琴家  导演: 罗曼·波兰斯基 Roman Polanski   主演: 艾德里安·布洛迪 Adri...   \n",
       "\n",
       "   scores comments                                       release_time  \\\n",
       "0     9.7  2530093  \\n                            1994 / 美国 / 犯罪 剧...   \n",
       "1     9.6  1880778  \\n                            1993 / 中国大陆 中国香港...   \n",
       "2     9.5  1900765  \\n                            1994 / 美国 / 剧情 爱...   \n",
       "3     9.4  1862552  \\n                            1997 / 美国 墨西哥 澳大...   \n",
       "4     9.4  2060659  \\n                            1994 / 法国 美国 / 剧...   \n",
       "5     9.6  1166135  \\n                            1997 / 意大利 / 剧情 ...   \n",
       "6     9.4  1982091  \\n                            2001 / 日本 / 剧情 动...   \n",
       "7     9.5   972663  \\n                            1993 / 美国 / 剧情 历...   \n",
       "8     9.3  1825425  \\n                            2010 / 美国 英国 / 剧...   \n",
       "9     9.4  1252291  \\n                            2009 / 美国 英国 / 剧...   \n",
       "10    9.4  1506148  \\n                            2014 / 美国 英国 加拿大...   \n",
       "11    9.3  1428009  \\n                            1998 / 美国 / 剧情 科...   \n",
       "12    9.3  1483131  \\n                            1998 / 意大利 / 剧情 ...   \n",
       "13    9.2  1660113  \\n                            2009 / 印度 / 剧情 喜...   \n",
       "14    9.3  1169718  \\n                            2008 / 美国 / 科幻 动...   \n",
       "15    9.3  1154369  \\n                            2004 / 法国 瑞士 德国 ...   \n",
       "16    9.3  1155782  \\n                            2002 / 中国香港 / 剧情...   \n",
       "17    9.2  1657773  \\n                            2016 / 美国 / 喜剧 动...   \n",
       "18    9.2  1355011  \\n                            1995 / 中国香港 中国大陆...   \n",
       "19    9.3   824240  \\n                            2011 / 韩国 / 剧情\\n...   \n",
       "20    9.3   830675  \\n                            1972 / 美国 / 剧情 犯...   \n",
       "21    9.2  1342311  \\n                            2006 / 美国 / 剧情 传...   \n",
       "22    9.6   422680  \\n                            1957 / 美国 / 剧情 犯...   \n",
       "23    9.2  1119232  \\n                            1988 / 日本 / 动画 奇...   \n",
       "24    9.1  1605091  \\n                            2010 / 美国 / 剧情 喜...   \n",
       "0     9.3   914955  \\n                            2011 / 法国 / 剧情 喜...   \n",
       "1     9.3   738447  \\n                            1987 / 英国 意大利 中国...   \n",
       "2     9.2   919650  \\n                            2008 / 美国 英国 / 剧...   \n",
       "3     9.1  1423375  \\n                            2017 / 美国 / 喜剧 动...   \n",
       "4     9.3   719298  \\n                            1994 / 中国大陆 中国香港...   \n",
       "5     9.1   991744  \\n                            2001 / 美国 英国 / 奇...   \n",
       "6     9.3   702952  \\n                            2003 / 美国 新西兰 / ...   \n",
       "7     9.3   607506  \\n                            1939 / 美国 / 剧情 历...   \n",
       "8     9.3   592134  \\n                            2013 / 韩国 / 剧情\\n...   \n",
       "9     9.1  1168576  \\n                            2009 / 美国 / 剧情 喜...   \n",
       "10    9.0  1387618  \\n                            2016 / 印度 / 剧情 传...   \n",
       "11    9.1   903288  \\n                            2018 / 黎巴嫩 美国 法国...   \n",
       "12    9.0  1847631  \\n                            2018 / 中国大陆 / 剧情...   \n",
       "13    9.4   412413  \\n                            1957 / 美国 / 剧情\\n...   \n",
       "14    9.1   880717  \\n                            2004 / 日本 / 动画 奇...   \n",
       "15    9.1  1208012  \\n                            2012 / 美国 中国台湾 英...   \n",
       "16    9.3   543225  \\n                            2000 / 中国大陆 / 剧情...   \n",
       "17    9.0  1079689  \\n                            1995 / 中国香港 中国大陆...   \n",
       "18    9.1   728716  \\n                            1986 / 日本 / 动画 奇...   \n",
       "19    9.1   826923  \\n                            2002 / 美国 加拿大 / ...   \n",
       "20    9.2   605499  \\n                            1988 / 意大利 法国 / ...   \n",
       "21    9.1   759945  \\n                            1992 / 美国 / 剧情\\n...   \n",
       "22    9.2   655204  \\n                            2002 / 美国 新西兰 / ...   \n",
       "23    9.1   848835  \\n                            1953 / 美国 / 喜剧 剧...   \n",
       "24    9.2   510873  \\n                            2002 / 英国 法国 波兰 ...   \n",
       "\n",
       "                                     inq  \\\n",
       "0                                希望让人自由。   \n",
       "1                                  风华绝代。   \n",
       "2                              一部美国近现代史。   \n",
       "3                             失去的才是永恒的。    \n",
       "4                        怪蜀黍和小萝莉不得不说的故事。   \n",
       "5                                 最美的谎言。   \n",
       "6                        最好的宫崎骏，最好的久石让。    \n",
       "7                        拯救一个人，就是拯救整个世界。   \n",
       "8                        诺兰给了我们一场无法盗取的梦。   \n",
       "9                          永远都不能忘记你所爱的人。   \n",
       "10                 爱是一种力量，让我们超越时空感知它的存在。   \n",
       "11                 如果再也不能见到你，祝你早安，午安，晚安。   \n",
       "12             每个人都要走一条自己坚定了的路，就算是粉身碎骨。    \n",
       "13                        英俊版憨豆，高情商版谢耳朵。   \n",
       "14                              小瓦力，大人生。   \n",
       "15                   天籁一般的童声，是最接近上帝的存在。    \n",
       "16                        香港电影史上永不过时的杰作。   \n",
       "17       迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。   \n",
       "18                                 一生所爱。   \n",
       "19          我们一路奋战不是为了改变世界，而是为了不让世界改变我们。   \n",
       "20                 千万不要记恨你的对手，这样会让你失去理智。   \n",
       "21                               平民励志片。    \n",
       "22                            比利·怀德满分作品。   \n",
       "23                  人人心中都有个龙猫，童年就永远不会消失。   \n",
       "24                         真正的幸福是来自内心深处。   \n",
       "0                             满满温情的高雅喜剧。   \n",
       "1              “不要跟我比惨，我比你更惨”再适合这部电影不过了。   \n",
       "2                                 无尽的黑暗。   \n",
       "3                    死亡不是真的逝去，遗忘才是永恒的消亡。   \n",
       "4                              张艺谋最好的电影。   \n",
       "5                               童话世界的开端。   \n",
       "6                                 史诗的终章。   \n",
       "7               Tomorrow is another day.   \n",
       "8     受过伤害的人总是笑得最开心，因为他们不愿意让身边的人承受一样的痛苦。   \n",
       "9                  最后那些最无聊的事情，才是最值得怀念的。    \n",
       "10  你不是在为你一个人战斗，你要让千千万万的女性看到女生并不是只能相夫教子。   \n",
       "11                       凝视卑弱生命，用电影改变命运。   \n",
       "12                  对我们国家而言，这样的电影多一部是一部。   \n",
       "13                          1957年的理想主义。    \n",
       "14                          带着心爱的人在天空飞翔。   \n",
       "15                       瑰丽壮观、无人能及的冒险之旅。   \n",
       "16                       对敌人的仁慈，就是对自己残忍。   \n",
       "17                                 旷古烁今。   \n",
       "18                         对天空的追逐，永不停止。    \n",
       "19                    骗子大师和执著警探的你追我跑故事。    \n",
       "20         那些吻戏，那些青春，都在影院的黑暗里被泪水冲刷得无比清晰。   \n",
       "21                              史上最美的探戈。   \n",
       "22                            承前启后的史诗篇章。   \n",
       "23                             爱情哪怕只有一天。   \n",
       "24                              音乐能化解仇恨。   \n",
       "\n",
       "                                             imgs_url  \\\n",
       "0   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "1   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "2   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "3   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "4   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "5   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "6   https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "7   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "8   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "9   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "10  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "11  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "12  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "13  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "14  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "15  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "16  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "17  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "18  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "19  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "20  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "21  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "22  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "23  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "24  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "0   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "1   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "2   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "3   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "4   https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "5   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "6   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "7   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "8   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "9   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "10  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "11  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "12  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "13  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "14  https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "15  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "16  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "17  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "18  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "19  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "20  https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "21  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "22  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "23  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "24  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "\n",
       "                                   details_url  \n",
       "0    https://movie.douban.com/subject/1292052/  \n",
       "1    https://movie.douban.com/subject/1291546/  \n",
       "2    https://movie.douban.com/subject/1292720/  \n",
       "3    https://movie.douban.com/subject/1292722/  \n",
       "4    https://movie.douban.com/subject/1295644/  \n",
       "5    https://movie.douban.com/subject/1292063/  \n",
       "6    https://movie.douban.com/subject/1291561/  \n",
       "7    https://movie.douban.com/subject/1295124/  \n",
       "8    https://movie.douban.com/subject/3541415/  \n",
       "9    https://movie.douban.com/subject/3011091/  \n",
       "10   https://movie.douban.com/subject/1889243/  \n",
       "11   https://movie.douban.com/subject/1292064/  \n",
       "12   https://movie.douban.com/subject/1292001/  \n",
       "13   https://movie.douban.com/subject/3793023/  \n",
       "14   https://movie.douban.com/subject/2131459/  \n",
       "15   https://movie.douban.com/subject/1291549/  \n",
       "16   https://movie.douban.com/subject/1307914/  \n",
       "17  https://movie.douban.com/subject/25662329/  \n",
       "18   https://movie.douban.com/subject/1292213/  \n",
       "19   https://movie.douban.com/subject/5912992/  \n",
       "20   https://movie.douban.com/subject/1291841/  \n",
       "21   https://movie.douban.com/subject/1849031/  \n",
       "22   https://movie.douban.com/subject/1296141/  \n",
       "23   https://movie.douban.com/subject/1291560/  \n",
       "24   https://movie.douban.com/subject/3319755/  \n",
       "0    https://movie.douban.com/subject/6786002/  \n",
       "1    https://movie.douban.com/subject/1293172/  \n",
       "2    https://movie.douban.com/subject/1851857/  \n",
       "3   https://movie.douban.com/subject/20495023/  \n",
       "4    https://movie.douban.com/subject/1292365/  \n",
       "5    https://movie.douban.com/subject/1295038/  \n",
       "6    https://movie.douban.com/subject/1291552/  \n",
       "7    https://movie.douban.com/subject/1300267/  \n",
       "8   https://movie.douban.com/subject/21937452/  \n",
       "9    https://movie.douban.com/subject/2129039/  \n",
       "10  https://movie.douban.com/subject/26387939/  \n",
       "11  https://movie.douban.com/subject/30170448/  \n",
       "12  https://movie.douban.com/subject/26752088/  \n",
       "13   https://movie.douban.com/subject/1293182/  \n",
       "14   https://movie.douban.com/subject/1308807/  \n",
       "15   https://movie.douban.com/subject/1929463/  \n",
       "16   https://movie.douban.com/subject/1291858/  \n",
       "17   https://movie.douban.com/subject/1299398/  \n",
       "18   https://movie.douban.com/subject/1291583/  \n",
       "19   https://movie.douban.com/subject/1305487/  \n",
       "20   https://movie.douban.com/subject/1291828/  \n",
       "21   https://movie.douban.com/subject/1298624/  \n",
       "22   https://movie.douban.com/subject/1291572/  \n",
       "23   https://movie.douban.com/subject/1293839/  \n",
       "24   https://movie.douban.com/subject/1296736/  "
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests ### 按照思路爬取（请求解析保存）多页\n",
    "headers = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62',    \n",
    "}\n",
    "\n",
    "dfs = pd.DataFrame()\n",
    "for page in range(2):\n",
    "    res = requests.get(url='https://movie.douban.com/top250?start={}&filter='.format(page*25),headers=headers)\n",
    "    # res.text\n",
    "\n",
    "    from lxml import etree\n",
    "    html = etree.HTML(res.text)\n",
    "    rank_num = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/em/text()')\n",
    "    movie_name = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/span[1]/text()')\n",
    "    actors = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[1]')\n",
    "    actors = [i.strip() for i in actors]\n",
    "    scores = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[2]/text()')\n",
    "    comments = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[4]/text()')\n",
    "    comments = [i.strip('人评价') for i in comments]\n",
    "    release_time = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[2]')\n",
    "    inq = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[2]/span/text()')\n",
    "    imgs_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/a/img/@src')\n",
    "    details_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/@href')\n",
    "    datas = {\n",
    "        'rank_num': rank_num,\n",
    "        'movie_name': movie_name,\n",
    "        'actors': actors,\n",
    "        'scores': scores,\n",
    "        'comments': comments,\n",
    "        'release_time': release_time,\n",
    "        'inq': inq,\n",
    "        'imgs_url': imgs_url,\n",
    "        'details_url': details_url\n",
    "    }\n",
    "    # datas\n",
    "\n",
    "    import pandas as pd\n",
    "\n",
    "    # df = pd.DataFrame(datas)\n",
    "    # df\n",
    "    dfs = pd.concat([dfs, pd.DataFrame(datas)])\n",
    "\n",
    "    # df.to_csv('datas.csv', index=False)\n",
    "dfs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>rank_num</th>\n",
       "      <th>movie_name</th>\n",
       "      <th>actors</th>\n",
       "      <th>scores</th>\n",
       "      <th>comments</th>\n",
       "      <th>release_time</th>\n",
       "      <th>inq</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>肖申克的救赎</td>\n",
       "      <td>导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...</td>\n",
       "      <td>9.7</td>\n",
       "      <td>2530148</td>\n",
       "      <td>\\n                            1994 / 美国 / 犯罪 剧...</td>\n",
       "      <td>希望让人自由。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>霸王别姬</td>\n",
       "      <td>导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1880822</td>\n",
       "      <td>\\n                            1993 / 中国大陆 中国香港...</td>\n",
       "      <td>风华绝代。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>阿甘正传</td>\n",
       "      <td>导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>1900765</td>\n",
       "      <td>\\n                            1994 / 美国 / 剧情 爱...</td>\n",
       "      <td>一部美国近现代史。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>泰坦尼克号</td>\n",
       "      <td>导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1862605</td>\n",
       "      <td>\\n                            1997 / 美国 墨西哥 澳大...</td>\n",
       "      <td>失去的才是永恒的。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>这个杀手不太冷</td>\n",
       "      <td>导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>2060708</td>\n",
       "      <td>\\n                            1994 / 法国 美国 / 剧...</td>\n",
       "      <td>怪蜀黍和小萝莉不得不说的故事。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>美丽人生</td>\n",
       "      <td>导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1166163</td>\n",
       "      <td>\\n                            1997 / 意大利 / 剧情 ...</td>\n",
       "      <td>最美的谎言。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>千与千寻</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1982143</td>\n",
       "      <td>\\n                            2001 / 日本 / 剧情 动...</td>\n",
       "      <td>最好的宫崎骏，最好的久石让。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>辛德勒的名单</td>\n",
       "      <td>导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>972688</td>\n",
       "      <td>\\n                            1993 / 美国 / 剧情 历...</td>\n",
       "      <td>拯救一个人，就是拯救整个世界。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>盗梦空间</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1825472</td>\n",
       "      <td>\\n                            2010 / 美国 英国 / 剧...</td>\n",
       "      <td>诺兰给了我们一场无法盗取的梦。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>忠犬八公的故事</td>\n",
       "      <td>导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1252317</td>\n",
       "      <td>\\n                            2009 / 美国 英国 / 剧...</td>\n",
       "      <td>永远都不能忘记你所爱的人。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>星际穿越</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1506191</td>\n",
       "      <td>\\n                            2014 / 美国 英国 加拿大...</td>\n",
       "      <td>爱是一种力量，让我们超越时空感知它的存在。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>楚门的世界</td>\n",
       "      <td>导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1428056</td>\n",
       "      <td>\\n                            1998 / 美国 / 剧情 科...</td>\n",
       "      <td>如果再也不能见到你，祝你早安，午安，晚安。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>海上钢琴师</td>\n",
       "      <td>导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1483173</td>\n",
       "      <td>\\n                            1998 / 意大利 / 剧情 ...</td>\n",
       "      <td>每个人都要走一条自己坚定了的路，就算是粉身碎骨。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>三傻大闹宝莱坞</td>\n",
       "      <td>导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1660153</td>\n",
       "      <td>\\n                            2009 / 印度 / 剧情 喜...</td>\n",
       "      <td>英俊版憨豆，高情商版谢耳朵。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>机器人总动员</td>\n",
       "      <td>导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1169763</td>\n",
       "      <td>\\n                            2008 / 美国 / 科幻 动...</td>\n",
       "      <td>小瓦力，大人生。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>放牛班的春天</td>\n",
       "      <td>导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1154384</td>\n",
       "      <td>\\n                            2004 / 法国 瑞士 德国 ...</td>\n",
       "      <td>天籁一般的童声，是最接近上帝的存在。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>无间道</td>\n",
       "      <td>导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1155796</td>\n",
       "      <td>\\n                            2002 / 中国香港 / 剧情...</td>\n",
       "      <td>香港电影史上永不过时的杰作。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>疯狂动物城</td>\n",
       "      <td>导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1657825</td>\n",
       "      <td>\\n                            2016 / 美国 / 喜剧 动...</td>\n",
       "      <td>迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>大话西游之大圣娶亲</td>\n",
       "      <td>导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1355076</td>\n",
       "      <td>\\n                            1995 / 中国香港 中国大陆...</td>\n",
       "      <td>一生所爱。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>熔炉</td>\n",
       "      <td>导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>824260</td>\n",
       "      <td>\\n                            2011 / 韩国 / 剧情\\n...</td>\n",
       "      <td>我们一路奋战不是为了改变世界，而是为了不让世界改变我们。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>21</td>\n",
       "      <td>教父</td>\n",
       "      <td>导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>830706</td>\n",
       "      <td>\\n                            1972 / 美国 / 剧情 犯...</td>\n",
       "      <td>千万不要记恨你的对手，这样会让你失去理智。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>22</td>\n",
       "      <td>当幸福来敲门</td>\n",
       "      <td>导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1342340</td>\n",
       "      <td>\\n                            2006 / 美国 / 剧情 传...</td>\n",
       "      <td>平民励志片。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>23</td>\n",
       "      <td>控方证人</td>\n",
       "      <td>导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>422680</td>\n",
       "      <td>\\n                            1957 / 美国 / 剧情 犯...</td>\n",
       "      <td>比利·怀德满分作品。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>24</td>\n",
       "      <td>龙猫</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1119256</td>\n",
       "      <td>\\n                            1988 / 日本 / 动画 奇...</td>\n",
       "      <td>人人心中都有个龙猫，童年就永远不会消失。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>25</td>\n",
       "      <td>怦然心动</td>\n",
       "      <td>导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1605128</td>\n",
       "      <td>\\n                            2010 / 美国 / 剧情 喜...</td>\n",
       "      <td>真正的幸福是来自内心深处。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>26</td>\n",
       "      <td>触不可及</td>\n",
       "      <td>导演: 奥利维·那卡什 Olivier Nakache / 艾力克·托兰达 Eric Tol...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>915026</td>\n",
       "      <td>\\n                            2011 / 法国 / 剧情 喜...</td>\n",
       "      <td>满满温情的高雅喜剧。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>27</td>\n",
       "      <td>末代皇帝</td>\n",
       "      <td>导演: 贝纳尔多·贝托鲁奇 Bernardo Bertolucci   主演: 尊龙 Joh...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>738475</td>\n",
       "      <td>\\n                            1987 / 英国 意大利 中国...</td>\n",
       "      <td>“不要跟我比惨，我比你更惨”再适合这部电影不过了。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>28</td>\n",
       "      <td>蝙蝠侠：黑暗骑士</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 克里斯蒂安·贝尔 ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>919665</td>\n",
       "      <td>\\n                            2008 / 美国 英国 / 剧...</td>\n",
       "      <td>无尽的黑暗。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>29</td>\n",
       "      <td>寻梦环游记</td>\n",
       "      <td>导演: 李·昂克里奇 Lee Unkrich / 阿德里安·莫利纳 Adrian Molin...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1423425</td>\n",
       "      <td>\\n                            2017 / 美国 / 喜剧 动...</td>\n",
       "      <td>死亡不是真的逝去，遗忘才是永恒的消亡。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>30</td>\n",
       "      <td>活着</td>\n",
       "      <td>导演: 张艺谋 Yimou Zhang   主演: 葛优 You Ge / 巩俐 Li Go...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>719298</td>\n",
       "      <td>\\n                            1994 / 中国大陆 中国香港...</td>\n",
       "      <td>张艺谋最好的电影。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>31</td>\n",
       "      <td>哈利·波特与魔法石</td>\n",
       "      <td>导演: Chris Columbus   主演: Daniel Radcliffe / Em...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>991778</td>\n",
       "      <td>\\n                            2001 / 美国 英国 / 奇...</td>\n",
       "      <td>童话世界的开端。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>32</td>\n",
       "      <td>指环王3：王者无敌</td>\n",
       "      <td>导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>702971</td>\n",
       "      <td>\\n                            2003 / 美国 新西兰 / ...</td>\n",
       "      <td>史诗的终章。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>33</td>\n",
       "      <td>乱世佳人</td>\n",
       "      <td>导演: 维克多·弗莱明 Victor Fleming / 乔治·库克 George Cuko...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>607506</td>\n",
       "      <td>\\n                            1939 / 美国 / 剧情 历...</td>\n",
       "      <td>Tomorrow is another day.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>34</td>\n",
       "      <td>素媛</td>\n",
       "      <td>导演: 李濬益 Jun-ik Lee   主演: 薛景求 Kyung-gu Sol / 严志...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>592152</td>\n",
       "      <td>\\n                            2013 / 韩国 / 剧情\\n...</td>\n",
       "      <td>受过伤害的人总是笑得最开心，因为他们不愿意让身边的人承受一样的痛苦。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>35</td>\n",
       "      <td>飞屋环游记</td>\n",
       "      <td>导演: 彼特·道格特 Pete Docter / 鲍勃·彼德森 Bob Peterson  ...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1168604</td>\n",
       "      <td>\\n                            2009 / 美国 / 剧情 喜...</td>\n",
       "      <td>最后那些最无聊的事情，才是最值得怀念的。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>36</td>\n",
       "      <td>摔跤吧！爸爸</td>\n",
       "      <td>导演: 涅提·蒂瓦里 Nitesh Tiwari   主演: 阿米尔·汗 Aamir Kha...</td>\n",
       "      <td>9.0</td>\n",
       "      <td>1387650</td>\n",
       "      <td>\\n                            2016 / 印度 / 剧情 传...</td>\n",
       "      <td>你不是在为你一个人战斗，你要让千千万万的女性看到女生并不是只能相夫教子。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>37</td>\n",
       "      <td>何以为家</td>\n",
       "      <td>导演: 娜丁·拉巴基 Nadine Labaki   主演: 扎因·拉费阿 Zain al-...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>903313</td>\n",
       "      <td>\\n                            2018 / 黎巴嫩 美国 法国...</td>\n",
       "      <td>凝视卑弱生命，用电影改变命运。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>38</td>\n",
       "      <td>我不是药神</td>\n",
       "      <td>导演: 文牧野 Muye Wen   主演: 徐峥 Zheng Xu / 王传君 Chuan...</td>\n",
       "      <td>9.0</td>\n",
       "      <td>1847675</td>\n",
       "      <td>\\n                            2018 / 中国大陆 / 剧情...</td>\n",
       "      <td>对我们国家而言，这样的电影多一部是一部。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>39</td>\n",
       "      <td>十二怒汉</td>\n",
       "      <td>导演: Sidney Lumet   主演: 亨利·方达 Henry Fonda / 马丁·...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>412444</td>\n",
       "      <td>\\n                            1957 / 美国 / 剧情\\n...</td>\n",
       "      <td>1957年的理想主义。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>40</td>\n",
       "      <td>哈尔的移动城堡</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 倍赏千惠子 Chieko Bais...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>880745</td>\n",
       "      <td>\\n                            2004 / 日本 / 动画 奇...</td>\n",
       "      <td>带着心爱的人在天空飞翔。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>41</td>\n",
       "      <td>少年派的奇幻漂流</td>\n",
       "      <td>导演: 李安 Ang Lee   主演: 苏拉·沙玛 Suraj Sharma / 伊尔凡·...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1208035</td>\n",
       "      <td>\\n                            2012 / 美国 中国台湾 英...</td>\n",
       "      <td>瑰丽壮观、无人能及的冒险之旅。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>42</td>\n",
       "      <td>鬼子来了</td>\n",
       "      <td>导演: 姜文 Wen Jiang   主演: 姜文 Wen Jiang / 香川照之 Ter...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>543245</td>\n",
       "      <td>\\n                            2000 / 中国大陆 / 剧情...</td>\n",
       "      <td>对敌人的仁慈，就是对自己残忍。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>43</td>\n",
       "      <td>大话西游之月光宝盒</td>\n",
       "      <td>导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...</td>\n",
       "      <td>9.0</td>\n",
       "      <td>1079719</td>\n",
       "      <td>\\n                            1995 / 中国香港 中国大陆...</td>\n",
       "      <td>旷古烁今。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>44</td>\n",
       "      <td>天空之城</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 田中真弓 Mayumi Tanak...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>728729</td>\n",
       "      <td>\\n                            1986 / 日本 / 动画 奇...</td>\n",
       "      <td>对天空的追逐，永不停止。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>45</td>\n",
       "      <td>猫鼠游戏</td>\n",
       "      <td>导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 莱昂纳多·迪卡普里...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>826961</td>\n",
       "      <td>\\n                            2002 / 美国 加拿大 / ...</td>\n",
       "      <td>骗子大师和执著警探的你追我跑故事。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>46</td>\n",
       "      <td>天堂电影院</td>\n",
       "      <td>导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 菲利普·努瓦雷 ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>605519</td>\n",
       "      <td>\\n                            1988 / 意大利 法国 / ...</td>\n",
       "      <td>那些吻戏，那些青春，都在影院的黑暗里被泪水冲刷得无比清晰。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>47</td>\n",
       "      <td>闻香识女人</td>\n",
       "      <td>导演: 马丁·布莱斯 Martin Brest   主演: 阿尔·帕西诺 Al Pacino...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>759979</td>\n",
       "      <td>\\n                            1992 / 美国 / 剧情\\n...</td>\n",
       "      <td>史上最美的探戈。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>48</td>\n",
       "      <td>指环王2：双塔奇兵</td>\n",
       "      <td>导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>655218</td>\n",
       "      <td>\\n                            2002 / 美国 新西兰 / ...</td>\n",
       "      <td>承前启后的史诗篇章。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>49</td>\n",
       "      <td>罗马假日</td>\n",
       "      <td>导演: 威廉·惠勒 William Wyler   主演: 奥黛丽·赫本 Audrey He...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>848849</td>\n",
       "      <td>\\n                            1953 / 美国 / 喜剧 剧...</td>\n",
       "      <td>爱情哪怕只有一天。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>50</td>\n",
       "      <td>钢琴家</td>\n",
       "      <td>导演: 罗曼·波兰斯基 Roman Polanski   主演: 艾德里安·布洛迪 Adri...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>510895</td>\n",
       "      <td>\\n                            2002 / 英国 法国 波兰 ...</td>\n",
       "      <td>音乐能化解仇恨。</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   rank_num movie_name                                             actors  \\\n",
       "0         1     肖申克的救赎  导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...   \n",
       "1         2       霸王别姬  导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...   \n",
       "2         3       阿甘正传  导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...   \n",
       "3         4      泰坦尼克号  导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...   \n",
       "4         5    这个杀手不太冷  导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...   \n",
       "5         6       美丽人生  导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...   \n",
       "6         7       千与千寻  导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...   \n",
       "7         8     辛德勒的名单  导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...   \n",
       "8         9       盗梦空间  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...   \n",
       "9        10    忠犬八公的故事  导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...   \n",
       "10       11       星际穿越  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...   \n",
       "11       12      楚门的世界  导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...   \n",
       "12       13      海上钢琴师  导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...   \n",
       "13       14    三傻大闹宝莱坞  导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...   \n",
       "14       15     机器人总动员  导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...   \n",
       "15       16     放牛班的春天  导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...   \n",
       "16       17        无间道                导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生   \n",
       "17       18      疯狂动物城  导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...   \n",
       "18       19  大话西游之大圣娶亲  导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...   \n",
       "19       20         熔炉  导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...   \n",
       "20       21         教父  导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...   \n",
       "21       22     当幸福来敲门  导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...   \n",
       "22       23       控方证人  导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...   \n",
       "23       24         龙猫  导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...   \n",
       "24       25       怦然心动  导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...   \n",
       "0        26       触不可及  导演: 奥利维·那卡什 Olivier Nakache / 艾力克·托兰达 Eric Tol...   \n",
       "1        27       末代皇帝  导演: 贝纳尔多·贝托鲁奇 Bernardo Bertolucci   主演: 尊龙 Joh...   \n",
       "2        28   蝙蝠侠：黑暗骑士  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 克里斯蒂安·贝尔 ...   \n",
       "3        29      寻梦环游记  导演: 李·昂克里奇 Lee Unkrich / 阿德里安·莫利纳 Adrian Molin...   \n",
       "4        30         活着  导演: 张艺谋 Yimou Zhang   主演: 葛优 You Ge / 巩俐 Li Go...   \n",
       "5        31  哈利·波特与魔法石  导演: Chris Columbus   主演: Daniel Radcliffe / Em...   \n",
       "6        32  指环王3：王者无敌  导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...   \n",
       "7        33       乱世佳人  导演: 维克多·弗莱明 Victor Fleming / 乔治·库克 George Cuko...   \n",
       "8        34         素媛  导演: 李濬益 Jun-ik Lee   主演: 薛景求 Kyung-gu Sol / 严志...   \n",
       "9        35      飞屋环游记  导演: 彼特·道格特 Pete Docter / 鲍勃·彼德森 Bob Peterson  ...   \n",
       "10       36     摔跤吧！爸爸  导演: 涅提·蒂瓦里 Nitesh Tiwari   主演: 阿米尔·汗 Aamir Kha...   \n",
       "11       37       何以为家  导演: 娜丁·拉巴基 Nadine Labaki   主演: 扎因·拉费阿 Zain al-...   \n",
       "12       38      我不是药神  导演: 文牧野 Muye Wen   主演: 徐峥 Zheng Xu / 王传君 Chuan...   \n",
       "13       39       十二怒汉  导演: Sidney Lumet   主演: 亨利·方达 Henry Fonda / 马丁·...   \n",
       "14       40    哈尔的移动城堡  导演: 宫崎骏 Hayao Miyazaki   主演: 倍赏千惠子 Chieko Bais...   \n",
       "15       41   少年派的奇幻漂流  导演: 李安 Ang Lee   主演: 苏拉·沙玛 Suraj Sharma / 伊尔凡·...   \n",
       "16       42       鬼子来了  导演: 姜文 Wen Jiang   主演: 姜文 Wen Jiang / 香川照之 Ter...   \n",
       "17       43  大话西游之月光宝盒  导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...   \n",
       "18       44       天空之城  导演: 宫崎骏 Hayao Miyazaki   主演: 田中真弓 Mayumi Tanak...   \n",
       "19       45       猫鼠游戏  导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 莱昂纳多·迪卡普里...   \n",
       "20       46      天堂电影院  导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 菲利普·努瓦雷 ...   \n",
       "21       47      闻香识女人  导演: 马丁·布莱斯 Martin Brest   主演: 阿尔·帕西诺 Al Pacino...   \n",
       "22       48  指环王2：双塔奇兵  导演: 彼得·杰克逊 Peter Jackson   主演: 伊利亚·伍德 Elijah W...   \n",
       "23       49       罗马假日  导演: 威廉·惠勒 William Wyler   主演: 奥黛丽·赫本 Audrey He...   \n",
       "24       50        钢琴家  导演: 罗曼·波兰斯基 Roman Polanski   主演: 艾德里安·布洛迪 Adri...   \n",
       "\n",
       "   scores comments                                       release_time  \\\n",
       "0     9.7  2530148  \\n                            1994 / 美国 / 犯罪 剧...   \n",
       "1     9.6  1880822  \\n                            1993 / 中国大陆 中国香港...   \n",
       "2     9.5  1900765  \\n                            1994 / 美国 / 剧情 爱...   \n",
       "3     9.4  1862605  \\n                            1997 / 美国 墨西哥 澳大...   \n",
       "4     9.4  2060708  \\n                            1994 / 法国 美国 / 剧...   \n",
       "5     9.6  1166163  \\n                            1997 / 意大利 / 剧情 ...   \n",
       "6     9.4  1982143  \\n                            2001 / 日本 / 剧情 动...   \n",
       "7     9.5   972688  \\n                            1993 / 美国 / 剧情 历...   \n",
       "8     9.3  1825472  \\n                            2010 / 美国 英国 / 剧...   \n",
       "9     9.4  1252317  \\n                            2009 / 美国 英国 / 剧...   \n",
       "10    9.4  1506191  \\n                            2014 / 美国 英国 加拿大...   \n",
       "11    9.3  1428056  \\n                            1998 / 美国 / 剧情 科...   \n",
       "12    9.3  1483173  \\n                            1998 / 意大利 / 剧情 ...   \n",
       "13    9.2  1660153  \\n                            2009 / 印度 / 剧情 喜...   \n",
       "14    9.3  1169763  \\n                            2008 / 美国 / 科幻 动...   \n",
       "15    9.3  1154384  \\n                            2004 / 法国 瑞士 德国 ...   \n",
       "16    9.3  1155796  \\n                            2002 / 中国香港 / 剧情...   \n",
       "17    9.2  1657825  \\n                            2016 / 美国 / 喜剧 动...   \n",
       "18    9.2  1355076  \\n                            1995 / 中国香港 中国大陆...   \n",
       "19    9.3   824260  \\n                            2011 / 韩国 / 剧情\\n...   \n",
       "20    9.3   830706  \\n                            1972 / 美国 / 剧情 犯...   \n",
       "21    9.2  1342340  \\n                            2006 / 美国 / 剧情 传...   \n",
       "22    9.6   422680  \\n                            1957 / 美国 / 剧情 犯...   \n",
       "23    9.2  1119256  \\n                            1988 / 日本 / 动画 奇...   \n",
       "24    9.1  1605128  \\n                            2010 / 美国 / 剧情 喜...   \n",
       "0     9.3   915026  \\n                            2011 / 法国 / 剧情 喜...   \n",
       "1     9.3   738475  \\n                            1987 / 英国 意大利 中国...   \n",
       "2     9.2   919665  \\n                            2008 / 美国 英国 / 剧...   \n",
       "3     9.1  1423425  \\n                            2017 / 美国 / 喜剧 动...   \n",
       "4     9.3   719298  \\n                            1994 / 中国大陆 中国香港...   \n",
       "5     9.1   991778  \\n                            2001 / 美国 英国 / 奇...   \n",
       "6     9.3   702971  \\n                            2003 / 美国 新西兰 / ...   \n",
       "7     9.3   607506  \\n                            1939 / 美国 / 剧情 历...   \n",
       "8     9.3   592152  \\n                            2013 / 韩国 / 剧情\\n...   \n",
       "9     9.1  1168604  \\n                            2009 / 美国 / 剧情 喜...   \n",
       "10    9.0  1387650  \\n                            2016 / 印度 / 剧情 传...   \n",
       "11    9.1   903313  \\n                            2018 / 黎巴嫩 美国 法国...   \n",
       "12    9.0  1847675  \\n                            2018 / 中国大陆 / 剧情...   \n",
       "13    9.4   412444  \\n                            1957 / 美国 / 剧情\\n...   \n",
       "14    9.1   880745  \\n                            2004 / 日本 / 动画 奇...   \n",
       "15    9.1  1208035  \\n                            2012 / 美国 中国台湾 英...   \n",
       "16    9.3   543245  \\n                            2000 / 中国大陆 / 剧情...   \n",
       "17    9.0  1079719  \\n                            1995 / 中国香港 中国大陆...   \n",
       "18    9.1   728729  \\n                            1986 / 日本 / 动画 奇...   \n",
       "19    9.1   826961  \\n                            2002 / 美国 加拿大 / ...   \n",
       "20    9.2   605519  \\n                            1988 / 意大利 法国 / ...   \n",
       "21    9.1   759979  \\n                            1992 / 美国 / 剧情\\n...   \n",
       "22    9.2   655218  \\n                            2002 / 美国 新西兰 / ...   \n",
       "23    9.1   848849  \\n                            1953 / 美国 / 喜剧 剧...   \n",
       "24    9.2   510895  \\n                            2002 / 英国 法国 波兰 ...   \n",
       "\n",
       "                                     inq  \n",
       "0                                希望让人自由。  \n",
       "1                                  风华绝代。  \n",
       "2                              一部美国近现代史。  \n",
       "3                             失去的才是永恒的。   \n",
       "4                        怪蜀黍和小萝莉不得不说的故事。  \n",
       "5                                 最美的谎言。  \n",
       "6                        最好的宫崎骏，最好的久石让。   \n",
       "7                        拯救一个人，就是拯救整个世界。  \n",
       "8                        诺兰给了我们一场无法盗取的梦。  \n",
       "9                          永远都不能忘记你所爱的人。  \n",
       "10                 爱是一种力量，让我们超越时空感知它的存在。  \n",
       "11                 如果再也不能见到你，祝你早安，午安，晚安。  \n",
       "12             每个人都要走一条自己坚定了的路，就算是粉身碎骨。   \n",
       "13                        英俊版憨豆，高情商版谢耳朵。  \n",
       "14                              小瓦力，大人生。  \n",
       "15                   天籁一般的童声，是最接近上帝的存在。   \n",
       "16                        香港电影史上永不过时的杰作。  \n",
       "17       迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。  \n",
       "18                                 一生所爱。  \n",
       "19          我们一路奋战不是为了改变世界，而是为了不让世界改变我们。  \n",
       "20                 千万不要记恨你的对手，这样会让你失去理智。  \n",
       "21                               平民励志片。   \n",
       "22                            比利·怀德满分作品。  \n",
       "23                  人人心中都有个龙猫，童年就永远不会消失。  \n",
       "24                         真正的幸福是来自内心深处。  \n",
       "0                             满满温情的高雅喜剧。  \n",
       "1              “不要跟我比惨，我比你更惨”再适合这部电影不过了。  \n",
       "2                                 无尽的黑暗。  \n",
       "3                    死亡不是真的逝去，遗忘才是永恒的消亡。  \n",
       "4                              张艺谋最好的电影。  \n",
       "5                               童话世界的开端。  \n",
       "6                                 史诗的终章。  \n",
       "7               Tomorrow is another day.  \n",
       "8     受过伤害的人总是笑得最开心，因为他们不愿意让身边的人承受一样的痛苦。  \n",
       "9                  最后那些最无聊的事情，才是最值得怀念的。   \n",
       "10  你不是在为你一个人战斗，你要让千千万万的女性看到女生并不是只能相夫教子。  \n",
       "11                       凝视卑弱生命，用电影改变命运。  \n",
       "12                  对我们国家而言，这样的电影多一部是一部。  \n",
       "13                          1957年的理想主义。   \n",
       "14                          带着心爱的人在天空飞翔。  \n",
       "15                       瑰丽壮观、无人能及的冒险之旅。  \n",
       "16                       对敌人的仁慈，就是对自己残忍。  \n",
       "17                                 旷古烁今。  \n",
       "18                         对天空的追逐，永不停止。   \n",
       "19                    骗子大师和执著警探的你追我跑故事。   \n",
       "20         那些吻戏，那些青春，都在影院的黑暗里被泪水冲刷得无比清晰。  \n",
       "21                              史上最美的探戈。  \n",
       "22                            承前启后的史诗篇章。  \n",
       "23                             爱情哪怕只有一天。  \n",
       "24                              音乐能化解仇恨。  "
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests ### 规范化爬取多页\n",
    "import pandas as pd\n",
    "from lxml import etree\n",
    "\n",
    "headers = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62',\n",
    "    'Cookie': '_vwo_uuid_v2=DF3BC37668EB9E0D898EF656883F8AC49|428bbf945ee750af7bfbbe49332d6458; bid=7CTQ6Kmi-pg; push_doumail_num=0; push_noty_num=0; __utmv=30149280.22926; __gads=ID=a6183812fd6e7a86-22994bc86fcf00af:T=1639464898:RT=1639464898:S=ALNI_MZbHcWstraSiZzpyDyMmldmralvNA; ll=\"128496\"; __yadk_uid=lF2MMZf02g84RCrFKQpre7fac93g74eG; _pk_ref.100001.4cf6=%5B%22%22%2C%22%22%2C1642580411%2C%22https%3A%2F%2Fcn.bing.com%2F%22%5D; _pk_ses.100001.4cf6=*; ap_v=0,6.0; __utma=30149280.1288512643.1639464884.1641803147.1642580411.14; __utmb=30149280.0.10.1642580411; __utmc=30149280; __utmz=30149280.1642580411.14.3.utmcsr=cn.bing.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utma=223695111.1951251099.1637843614.1641803147.1642580411.4; __utmb=223695111.0.10.1642580411; __utmc=223695111; __utmz=223695111.1642580411.4.3.utmcsr=cn.bing.com|utmccn=(referral)|utmcmd=referral|utmcct=/; _pk_id.100001.4cf6=c2b24a2232fc7d29.1637843613.4.1642580434.1641803209.',\n",
    "}\n",
    "\n",
    "def get_datas(url,headers):\n",
    "    try:\n",
    "        res = requests.get(url=url,headers=headers)\n",
    "        if res.status_code==200:\n",
    "            return res.text\n",
    "    except requests.RequestException:\n",
    "        print('error while crawling {}'.format(url))\n",
    "\n",
    "def parses(htmls):\n",
    "    html = etree.HTML(htmls)\n",
    "\n",
    "    rank_num = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/em/text()')\n",
    "    movie_name = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/span[1]/text()')\n",
    "    actors = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[1]')\n",
    "    actors = [i.strip() for i in actors]\n",
    "    scores = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[2]/text()')\n",
    "    comments = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[4]/text()')\n",
    "    comments = [i.strip('人评价') for i in comments]\n",
    "    release_time = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[2]')\n",
    "    inq = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[2]/span/text()')\n",
    "    imgs_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/a/img/@src')\n",
    "    details_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/@href')\n",
    "\n",
    "    return rank_num,movie_name,actors,scores,comments,release_time,inq,imgs_url,details_url\n",
    "\n",
    "def save_datas(datas):\n",
    "    rank_num,movie_name,actors,scores,comments,release_time,inq = datas\n",
    "    datas = {'rank_num': rank_num,\n",
    "                        'movie_name': movie_name,\n",
    "                        'actors': actors,\n",
    "                        'scores': scores,\n",
    "                        'comments': comments,\n",
    "                        'release_time': release_time,\n",
    "                        'inq': inq,\n",
    "                        'imgs_url': imgs_url,\n",
    "                        'details_url': details_url,\n",
    "    }\n",
    "    df = pd.DataFrame(datas)\n",
    "    # global dfs\n",
    "    # dfs = pd.concat([dfs, df])\n",
    "    return df\n",
    "\n",
    "\n",
    "def main(pages, main_url):\n",
    "    dfs = pd.DataFrame()\n",
    "    for page in range(pages):\n",
    "        htmls = get_datas(main_url.format(page*25),headers)\n",
    "        li_datas = parses(htmls)\n",
    "        dfs = pd.concat([dfs, save_datas(li_datas)])\n",
    "    # print(dfs)\n",
    "    # dfs.to_csv('datas.csv', index=False)\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    pages = 2\n",
    "    main_url = 'https://movie.douban.com/top250?start={}&filter='\n",
    "    main(pages, main_url)\n",
    "dfs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "https://movie.douban.com/subject/1292052/\n",
      "https://movie.douban.com/subject/1291546/\n",
      "https://movie.douban.com/subject/1292720/\n",
      "https://movie.douban.com/subject/1292722/\n",
      "https://movie.douban.com/subject/1295644/\n",
      "https://movie.douban.com/subject/1292063/\n",
      "https://movie.douban.com/subject/1291561/\n",
      "https://movie.douban.com/subject/1295124/\n",
      "https://movie.douban.com/subject/3541415/\n",
      "https://movie.douban.com/subject/3011091/\n",
      "https://movie.douban.com/subject/1889243/\n",
      "https://movie.douban.com/subject/1292064/\n",
      "https://movie.douban.com/subject/1292001/\n",
      "https://movie.douban.com/subject/3793023/\n",
      "https://movie.douban.com/subject/2131459/\n",
      "https://movie.douban.com/subject/1291549/\n",
      "https://movie.douban.com/subject/1307914/\n",
      "https://movie.douban.com/subject/25662329/\n",
      "https://movie.douban.com/subject/1292213/\n",
      "https://movie.douban.com/subject/5912992/\n",
      "https://movie.douban.com/subject/1291841/\n",
      "https://movie.douban.com/subject/1849031/\n",
      "https://movie.douban.com/subject/1296141/\n",
      "https://movie.douban.com/subject/1291560/\n",
      "https://movie.douban.com/subject/3319755/\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>rank_num</th>\n",
       "      <th>movie_name</th>\n",
       "      <th>actors</th>\n",
       "      <th>scores</th>\n",
       "      <th>comments</th>\n",
       "      <th>release_time</th>\n",
       "      <th>inq</th>\n",
       "      <th>imgs_url</th>\n",
       "      <th>details_url</th>\n",
       "      <th>percent_5stars</th>\n",
       "      <th>summaries</th>\n",
       "      <th>comments5</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>肖申克的救赎</td>\n",
       "      <td>导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...</td>\n",
       "      <td>9.7</td>\n",
       "      <td>2530211</td>\n",
       "      <td>\\n                            1994 / 美国 / 犯罪 剧...</td>\n",
       "      <td>希望让人自由。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292052/</td>\n",
       "      <td>85.6%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['策划了19年的私奔……', '“这是一部男人必看的电影。”人人都这么说。但单纯从性别区分...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>霸王别姬</td>\n",
       "      <td>导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1880871</td>\n",
       "      <td>\\n                            1993 / 中国大陆 中国香港...</td>\n",
       "      <td>风华绝代。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291546/</td>\n",
       "      <td>82.2%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['在野路子出身的张国荣面前，学院出身的张丰毅显得那么单薄', '君王意气尽 贱妾何聊生',...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>阿甘正传</td>\n",
       "      <td>导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>1900874</td>\n",
       "      <td>\\n                            1994 / 美国 / 剧情 爱...</td>\n",
       "      <td>一部美国近现代史。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292720/</td>\n",
       "      <td>77.1%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['妈妈说，生活就像一盒巧克力……请不要再续下一句，耳朵听的起了茧子。', '傻人有傻福，实...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>泰坦尼克号</td>\n",
       "      <td>导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1862649</td>\n",
       "      <td>\\n                            1997 / 美国 墨西哥 澳大...</td>\n",
       "      <td>失去的才是永恒的。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292722/</td>\n",
       "      <td>75.6%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['还是会哭。', '生死两茫茫\\r\\n不思量\\r\\n自难忘', '还用说么？太经典了。',...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>这个杀手不太冷</td>\n",
       "      <td>导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>2060739</td>\n",
       "      <td>\\n                            1994 / 法国 美国 / 剧...</td>\n",
       "      <td>怪蜀黍和小萝莉不得不说的故事。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295644/</td>\n",
       "      <td>73.9%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['一个杀手被一个萝莉害死的故事', \"-Is life always this hard....</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>美丽人生</td>\n",
       "      <td>导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>1166186</td>\n",
       "      <td>\\n                            1997 / 意大利 / 剧情 ...</td>\n",
       "      <td>最美的谎言。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292063/</td>\n",
       "      <td>80.5%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['人生，就是喜剧，就是一场1000分的游戏。千万别哭，不然那个迈着正步去赴死的犹太人会笑话...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>千与千寻</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1982181</td>\n",
       "      <td>\\n                            2001 / 日本 / 剧情 动...</td>\n",
       "      <td>最好的宫崎骏，最好的久石让。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291561/</td>\n",
       "      <td>72.9%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['曾发生过的事请不可能忘记 只不过是你想不起罢了', '有那么那么经典吗？还是我老了？',...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>辛德勒的名单</td>\n",
       "      <td>导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...</td>\n",
       "      <td>9.5</td>\n",
       "      <td>972713</td>\n",
       "      <td>\\n                            1993 / 美国 / 剧情 历...</td>\n",
       "      <td>拯救一个人，就是拯救整个世界。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1295124/</td>\n",
       "      <td>80.0%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['导演很清楚观众会喜欢什么，而这正是我不喜欢的地方', '出门的时候，看到灯火辉煌的城市，...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>盗梦空间</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1825518</td>\n",
       "      <td>\\n                            2010 / 美国 英国 / 剧...</td>\n",
       "      <td>诺兰给了我们一场无法盗取的梦。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3541415/</td>\n",
       "      <td>71.9%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['1、电影确实精彩。2、没有想象的难懂，相信你自己。3、总会有一个让你记一辈子的镜头。4、...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>忠犬八公的故事</td>\n",
       "      <td>导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1252341</td>\n",
       "      <td>\\n                            2009 / 美国 英国 / 剧...</td>\n",
       "      <td>永远都不能忘记你所爱的人。</td>\n",
       "      <td>https://img3.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3011091/</td>\n",
       "      <td>74.3%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['这真是漫长的一生啊，八公。', 'Hachi就是爱一个人过一生了。', '动物是我的死穴...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>星际穿越</td>\n",
       "      <td>导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...</td>\n",
       "      <td>9.4</td>\n",
       "      <td>1506234</td>\n",
       "      <td>\\n                            2014 / 美国 英国 加拿大...</td>\n",
       "      <td>爱是一种力量，让我们超越时空感知它的存在。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1889243/</td>\n",
       "      <td>73.2%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['时间可以伸缩和折叠，唯独不能倒退。你的鹤发或许是我的童颜，而我一次呼吸能抵过你此生的岁月...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>楚门的世界</td>\n",
       "      <td>导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1428096</td>\n",
       "      <td>\\n                            1998 / 美国 / 剧情 科...</td>\n",
       "      <td>如果再也不能见到你，祝你早安，午安，晚安。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292064/</td>\n",
       "      <td>70.8%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['那个导演好恶心，那群观众更恶心，反乌托邦就是要反这班偷窥成狂的上帝。自由的意志是不能任人...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>海上钢琴师</td>\n",
       "      <td>导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1483209</td>\n",
       "      <td>\\n                            1998 / 意大利 / 剧情 ...</td>\n",
       "      <td>每个人都要走一条自己坚定了的路，就算是粉身碎骨。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292001/</td>\n",
       "      <td>70.5%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['我总觉得这是一个真实的故事，因为他的懦弱，懦弱得真实。', '最长的一版完全是顺着煽情的...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>三傻大闹宝莱坞</td>\n",
       "      <td>导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1660184</td>\n",
       "      <td>\\n                            2009 / 印度 / 剧情 喜...</td>\n",
       "      <td>英俊版憨豆，高情商版谢耳朵。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3793023/</td>\n",
       "      <td>68.7%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['【温馨提示：请忽略这傻逼名字.不然你会错过一部好电影】1、病毒的鸟巢飞来了一只自由之鸟；...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>机器人总动员</td>\n",
       "      <td>导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1169763</td>\n",
       "      <td>\\n                            2008 / 美国 / 科幻 动...</td>\n",
       "      <td>小瓦力，大人生。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/2131459/</td>\n",
       "      <td>71.6%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['把所有的好东西都给eva', '浪漫得一塌糊涂，像废墟中开出的花，像牵手散步的下午，像世...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>放牛班的春天</td>\n",
       "      <td>导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1154416</td>\n",
       "      <td>\\n                            2004 / 法国 瑞士 德国 ...</td>\n",
       "      <td>天籁一般的童声，是最接近上帝的存在。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291549/</td>\n",
       "      <td>70.4%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['纸飞机+挥动的小手——那一刻，什么都值了', '一个孩子在启蒙时期，能够遇到一位好的老师...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>无间道</td>\n",
       "      <td>导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生</td>\n",
       "      <td>9.3</td>\n",
       "      <td>1155848</td>\n",
       "      <td>\\n                            2002 / 中国香港 / 剧情...</td>\n",
       "      <td>香港电影史上永不过时的杰作。</td>\n",
       "      <td>https://img2.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1307914/</td>\n",
       "      <td>68.0%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['最后那一下爆头，刘德华和梁朝伟的眼神里都是震惊，他死在电梯里，电梯门来回的开关，我们也从...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>疯狂动物城</td>\n",
       "      <td>导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1657863</td>\n",
       "      <td>\\n                            2016 / 美国 / 喜剧 动...</td>\n",
       "      <td>迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/25662329/</td>\n",
       "      <td>65.3%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['看过了这一部，我好像能够更坚定地说我会当迪士尼一辈子的粉丝。迪士尼给我们营造的乌托邦就是...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>大话西游之大圣娶亲</td>\n",
       "      <td>导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1355111</td>\n",
       "      <td>\\n                            1995 / 中国香港 中国大陆...</td>\n",
       "      <td>一生所爱。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1292213/</td>\n",
       "      <td>66.9%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['一遍烂，两遍笑，三遍哭', '有人跟我比赛背台词么', '因为你还没有遇到给你三颗痣的人...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>熔炉</td>\n",
       "      <td>导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>824282</td>\n",
       "      <td>\\n                            2011 / 韩国 / 剧情\\n...</td>\n",
       "      <td>我们一路奋战不是为了改变世界，而是为了不让世界改变我们。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/5912992/</td>\n",
       "      <td>71.3%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['媒体越干净，社会越肮脏', '我们愤怒的不仅是禽兽的行径，更是禽兽逍遥法外，正义无处伸张...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>21</td>\n",
       "      <td>教父</td>\n",
       "      <td>导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...</td>\n",
       "      <td>9.3</td>\n",
       "      <td>830733</td>\n",
       "      <td>\\n                            1972 / 美国 / 剧情 犯...</td>\n",
       "      <td>千万不要记恨你的对手，这样会让你失去理智。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291841/</td>\n",
       "      <td>71.7%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['男人。\\r\\n千万不要记恨你的对手，这样会让你失去理智。', '无论阿尔帕西诺多卖力，教...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>22</td>\n",
       "      <td>当幸福来敲门</td>\n",
       "      <td>导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1342379</td>\n",
       "      <td>\\n                            2006 / 美国 / 剧情 传...</td>\n",
       "      <td>平民励志片。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1849031/</td>\n",
       "      <td>64.3%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['看到开头就知道结局，不过这并不重要，重要的是过程。。。最感人的不是赢得职位，而是在厕所里...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>23</td>\n",
       "      <td>控方证人</td>\n",
       "      <td>导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...</td>\n",
       "      <td>9.6</td>\n",
       "      <td>422727</td>\n",
       "      <td>\\n                            1957 / 美国 / 剧情 犯...</td>\n",
       "      <td>比利·怀德满分作品。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1296141/</td>\n",
       "      <td>82.1%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['查尔斯劳顿简直是戏精！比利怀德的电影和阿加莎克里斯蒂的小说都是在结尾峰回路转，此片简直是...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>24</td>\n",
       "      <td>龙猫</td>\n",
       "      <td>导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...</td>\n",
       "      <td>9.2</td>\n",
       "      <td>1119276</td>\n",
       "      <td>\\n                            1988 / 日本 / 动画 奇...</td>\n",
       "      <td>人人心中都有个龙猫，童年就永远不会消失。</td>\n",
       "      <td>https://img9.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/1291560/</td>\n",
       "      <td>64.4%</td>\n",
       "      <td>['\\n                                \\u3000\\u30...</td>\n",
       "      <td>['如果你在下雨天的车站，遇到被淋湿的妖怪，请把雨伞借给它，你会得到森林的通行证哦', '原...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>25</td>\n",
       "      <td>怦然心动</td>\n",
       "      <td>导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...</td>\n",
       "      <td>9.1</td>\n",
       "      <td>1605169</td>\n",
       "      <td>\\n                            2010 / 美国 / 剧情 喜...</td>\n",
       "      <td>真正的幸福是来自内心深处。</td>\n",
       "      <td>https://img1.doubanio.com/view/photo/s_ratio_p...</td>\n",
       "      <td>https://movie.douban.com/subject/3319755/</td>\n",
       "      <td>62.0%</td>\n",
       "      <td>['\\n                            ', '\\n        ...</td>\n",
       "      <td>['某山渣树怎么好意思说自己是史上最纯？？！！！！！ 这个真打动我了。。。女孩是第二眼美女！...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   rank_num movie_name                                             actors  \\\n",
       "0         1     肖申克的救赎  导演: 弗兰克·德拉邦特 Frank Darabont   主演: 蒂姆·罗宾斯 Tim R...   \n",
       "1         2       霸王别姬  导演: 陈凯歌 Kaige Chen   主演: 张国荣 Leslie Cheung / 张...   \n",
       "2         3       阿甘正传  导演: 罗伯特·泽米吉斯 Robert Zemeckis   主演: 汤姆·汉克斯 Tom ...   \n",
       "3         4      泰坦尼克号  导演: 詹姆斯·卡梅隆 James Cameron   主演: 莱昂纳多·迪卡普里奥 Leo...   \n",
       "4         5    这个杀手不太冷  导演: 吕克·贝松 Luc Besson   主演: 让·雷诺 Jean Reno / 娜塔...   \n",
       "5         6       美丽人生  导演: 罗伯托·贝尼尼 Roberto Benigni   主演: 罗伯托·贝尼尼 Robe...   \n",
       "6         7       千与千寻  导演: 宫崎骏 Hayao Miyazaki   主演: 柊瑠美 Rumi Hîragi /...   \n",
       "7         8     辛德勒的名单  导演: 史蒂文·斯皮尔伯格 Steven Spielberg   主演: 连姆·尼森 Lia...   \n",
       "8         9       盗梦空间  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 莱昂纳多·迪卡普里...   \n",
       "9        10    忠犬八公的故事  导演: 莱塞·霍尔斯道姆 Lasse Hallström   主演: 理查·基尔 Richa...   \n",
       "10       11       星际穿越  导演: 克里斯托弗·诺兰 Christopher Nolan   主演: 马修·麦康纳 Ma...   \n",
       "11       12      楚门的世界  导演: 彼得·威尔 Peter Weir   主演: 金·凯瑞 Jim Carrey / 劳...   \n",
       "12       13      海上钢琴师  导演: 朱塞佩·托纳多雷 Giuseppe Tornatore   主演: 蒂姆·罗斯 Ti...   \n",
       "13       14    三傻大闹宝莱坞  导演: 拉库马·希拉尼 Rajkumar Hirani   主演: 阿米尔·汗 Aamir ...   \n",
       "14       15     机器人总动员  导演: 安德鲁·斯坦顿 Andrew Stanton   主演: 本·贝尔特 Ben Bur...   \n",
       "15       16     放牛班的春天  导演: 克里斯托夫·巴拉蒂 Christophe Barratier   主演: 热拉尔·朱...   \n",
       "16       17        无间道                导演: 刘伟强 / 麦兆辉   主演: 刘德华 / 梁朝伟 / 黄秋生   \n",
       "17       18      疯狂动物城  导演: 拜伦·霍华德 Byron Howard / 瑞奇·摩尔 Rich Moore   主...   \n",
       "18       19  大话西游之大圣娶亲  导演: 刘镇伟 Jeffrey Lau   主演: 周星驰 Stephen Chow / 吴...   \n",
       "19       20         熔炉  导演: 黄东赫 Dong-hyuk Hwang   主演: 孔侑 Yoo Gong / 郑有...   \n",
       "20       21         教父  导演: 弗朗西斯·福特·科波拉 Francis Ford Coppola   主演: 马龙·...   \n",
       "21       22     当幸福来敲门  导演: 加布里尔·穆奇诺 Gabriele Muccino   主演: 威尔·史密斯 Wil...   \n",
       "22       23       控方证人  导演: 比利·怀尔德 Billy Wilder   主演: 泰隆·鲍华 Tyrone Pow...   \n",
       "23       24         龙猫  导演: 宫崎骏 Hayao Miyazaki   主演: 日高法子 Noriko Hidak...   \n",
       "24       25       怦然心动  导演: 罗伯·莱纳 Rob Reiner   主演: 玛德琳·卡罗尔 Madeline Ca...   \n",
       "\n",
       "   scores comments                                       release_time  \\\n",
       "0     9.7  2530211  \\n                            1994 / 美国 / 犯罪 剧...   \n",
       "1     9.6  1880871  \\n                            1993 / 中国大陆 中国香港...   \n",
       "2     9.5  1900874  \\n                            1994 / 美国 / 剧情 爱...   \n",
       "3     9.4  1862649  \\n                            1997 / 美国 墨西哥 澳大...   \n",
       "4     9.4  2060739  \\n                            1994 / 法国 美国 / 剧...   \n",
       "5     9.6  1166186  \\n                            1997 / 意大利 / 剧情 ...   \n",
       "6     9.4  1982181  \\n                            2001 / 日本 / 剧情 动...   \n",
       "7     9.5   972713  \\n                            1993 / 美国 / 剧情 历...   \n",
       "8     9.3  1825518  \\n                            2010 / 美国 英国 / 剧...   \n",
       "9     9.4  1252341  \\n                            2009 / 美国 英国 / 剧...   \n",
       "10    9.4  1506234  \\n                            2014 / 美国 英国 加拿大...   \n",
       "11    9.3  1428096  \\n                            1998 / 美国 / 剧情 科...   \n",
       "12    9.3  1483209  \\n                            1998 / 意大利 / 剧情 ...   \n",
       "13    9.2  1660184  \\n                            2009 / 印度 / 剧情 喜...   \n",
       "14    9.3  1169763  \\n                            2008 / 美国 / 科幻 动...   \n",
       "15    9.3  1154416  \\n                            2004 / 法国 瑞士 德国 ...   \n",
       "16    9.3  1155848  \\n                            2002 / 中国香港 / 剧情...   \n",
       "17    9.2  1657863  \\n                            2016 / 美国 / 喜剧 动...   \n",
       "18    9.2  1355111  \\n                            1995 / 中国香港 中国大陆...   \n",
       "19    9.3   824282  \\n                            2011 / 韩国 / 剧情\\n...   \n",
       "20    9.3   830733  \\n                            1972 / 美国 / 剧情 犯...   \n",
       "21    9.2  1342379  \\n                            2006 / 美国 / 剧情 传...   \n",
       "22    9.6   422727  \\n                            1957 / 美国 / 剧情 犯...   \n",
       "23    9.2  1119276  \\n                            1988 / 日本 / 动画 奇...   \n",
       "24    9.1  1605169  \\n                            2010 / 美国 / 剧情 喜...   \n",
       "\n",
       "                                inq  \\\n",
       "0                           希望让人自由。   \n",
       "1                             风华绝代。   \n",
       "2                         一部美国近现代史。   \n",
       "3                        失去的才是永恒的。    \n",
       "4                   怪蜀黍和小萝莉不得不说的故事。   \n",
       "5                            最美的谎言。   \n",
       "6                   最好的宫崎骏，最好的久石让。    \n",
       "7                   拯救一个人，就是拯救整个世界。   \n",
       "8                   诺兰给了我们一场无法盗取的梦。   \n",
       "9                     永远都不能忘记你所爱的人。   \n",
       "10            爱是一种力量，让我们超越时空感知它的存在。   \n",
       "11            如果再也不能见到你，祝你早安，午安，晚安。   \n",
       "12        每个人都要走一条自己坚定了的路，就算是粉身碎骨。    \n",
       "13                   英俊版憨豆，高情商版谢耳朵。   \n",
       "14                         小瓦力，大人生。   \n",
       "15              天籁一般的童声，是最接近上帝的存在。    \n",
       "16                   香港电影史上永不过时的杰作。   \n",
       "17  迪士尼给我们营造的乌托邦就是这样，永远善良勇敢，永远出乎意料。   \n",
       "18                            一生所爱。   \n",
       "19     我们一路奋战不是为了改变世界，而是为了不让世界改变我们。   \n",
       "20            千万不要记恨你的对手，这样会让你失去理智。   \n",
       "21                          平民励志片。    \n",
       "22                       比利·怀德满分作品。   \n",
       "23             人人心中都有个龙猫，童年就永远不会消失。   \n",
       "24                    真正的幸福是来自内心深处。   \n",
       "\n",
       "                                             imgs_url  \\\n",
       "0   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "1   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "2   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "3   https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "4   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "5   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "6   https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "7   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "8   https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "9   https://img3.doubanio.com/view/photo/s_ratio_p...   \n",
       "10  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "11  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "12  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "13  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "14  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "15  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "16  https://img2.doubanio.com/view/photo/s_ratio_p...   \n",
       "17  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "18  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "19  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "20  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "21  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "22  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "23  https://img9.doubanio.com/view/photo/s_ratio_p...   \n",
       "24  https://img1.doubanio.com/view/photo/s_ratio_p...   \n",
       "\n",
       "                                   details_url percent_5stars  \\\n",
       "0    https://movie.douban.com/subject/1292052/          85.6%   \n",
       "1    https://movie.douban.com/subject/1291546/          82.2%   \n",
       "2    https://movie.douban.com/subject/1292720/          77.1%   \n",
       "3    https://movie.douban.com/subject/1292722/          75.6%   \n",
       "4    https://movie.douban.com/subject/1295644/          73.9%   \n",
       "5    https://movie.douban.com/subject/1292063/          80.5%   \n",
       "6    https://movie.douban.com/subject/1291561/          72.9%   \n",
       "7    https://movie.douban.com/subject/1295124/          80.0%   \n",
       "8    https://movie.douban.com/subject/3541415/          71.9%   \n",
       "9    https://movie.douban.com/subject/3011091/          74.3%   \n",
       "10   https://movie.douban.com/subject/1889243/          73.2%   \n",
       "11   https://movie.douban.com/subject/1292064/          70.8%   \n",
       "12   https://movie.douban.com/subject/1292001/          70.5%   \n",
       "13   https://movie.douban.com/subject/3793023/          68.7%   \n",
       "14   https://movie.douban.com/subject/2131459/          71.6%   \n",
       "15   https://movie.douban.com/subject/1291549/          70.4%   \n",
       "16   https://movie.douban.com/subject/1307914/          68.0%   \n",
       "17  https://movie.douban.com/subject/25662329/          65.3%   \n",
       "18   https://movie.douban.com/subject/1292213/          66.9%   \n",
       "19   https://movie.douban.com/subject/5912992/          71.3%   \n",
       "20   https://movie.douban.com/subject/1291841/          71.7%   \n",
       "21   https://movie.douban.com/subject/1849031/          64.3%   \n",
       "22   https://movie.douban.com/subject/1296141/          82.1%   \n",
       "23   https://movie.douban.com/subject/1291560/          64.4%   \n",
       "24   https://movie.douban.com/subject/3319755/          62.0%   \n",
       "\n",
       "                                            summaries  \\\n",
       "0   ['\\n                            ', '\\n        ...   \n",
       "1   ['\\n                                \\u3000\\u30...   \n",
       "2   ['\\n                                \\u3000\\u30...   \n",
       "3   ['\\n                                \\u3000\\u30...   \n",
       "4   ['\\n                                \\u3000\\u30...   \n",
       "5   ['\\n                                \\u3000\\u30...   \n",
       "6   ['\\n                                \\u3000\\u30...   \n",
       "7   ['\\n                                \\u3000\\u30...   \n",
       "8   ['\\n                            ', '\\n        ...   \n",
       "9   ['\\n                            ', '\\n        ...   \n",
       "10  ['\\n                            ', '\\n        ...   \n",
       "11  ['\\n                                \\u3000\\u30...   \n",
       "12  ['\\n                                \\u3000\\u30...   \n",
       "13  ['\\n                            ', '\\n        ...   \n",
       "14  ['\\n                                \\u3000\\u30...   \n",
       "15  ['\\n                                \\u3000\\u30...   \n",
       "16  ['\\n                                \\u3000\\u30...   \n",
       "17  ['\\n                                \\u3000\\u30...   \n",
       "18  ['\\n                                \\u3000\\u30...   \n",
       "19  ['\\n                                \\u3000\\u30...   \n",
       "20  ['\\n                                \\u3000\\u30...   \n",
       "21  ['\\n                                \\u3000\\u30...   \n",
       "22  ['\\n                            ', '\\n        ...   \n",
       "23  ['\\n                                \\u3000\\u30...   \n",
       "24  ['\\n                            ', '\\n        ...   \n",
       "\n",
       "                                            comments5  \n",
       "0   ['策划了19年的私奔……', '“这是一部男人必看的电影。”人人都这么说。但单纯从性别区分...  \n",
       "1   ['在野路子出身的张国荣面前，学院出身的张丰毅显得那么单薄', '君王意气尽 贱妾何聊生',...  \n",
       "2   ['妈妈说，生活就像一盒巧克力……请不要再续下一句，耳朵听的起了茧子。', '傻人有傻福，实...  \n",
       "3   ['还是会哭。', '生死两茫茫\\r\\n不思量\\r\\n自难忘', '还用说么？太经典了。',...  \n",
       "4   ['一个杀手被一个萝莉害死的故事', \"-Is life always this hard....  \n",
       "5   ['人生，就是喜剧，就是一场1000分的游戏。千万别哭，不然那个迈着正步去赴死的犹太人会笑话...  \n",
       "6   ['曾发生过的事请不可能忘记 只不过是你想不起罢了', '有那么那么经典吗？还是我老了？',...  \n",
       "7   ['导演很清楚观众会喜欢什么，而这正是我不喜欢的地方', '出门的时候，看到灯火辉煌的城市，...  \n",
       "8   ['1、电影确实精彩。2、没有想象的难懂，相信你自己。3、总会有一个让你记一辈子的镜头。4、...  \n",
       "9   ['这真是漫长的一生啊，八公。', 'Hachi就是爱一个人过一生了。', '动物是我的死穴...  \n",
       "10  ['时间可以伸缩和折叠，唯独不能倒退。你的鹤发或许是我的童颜，而我一次呼吸能抵过你此生的岁月...  \n",
       "11  ['那个导演好恶心，那群观众更恶心，反乌托邦就是要反这班偷窥成狂的上帝。自由的意志是不能任人...  \n",
       "12  ['我总觉得这是一个真实的故事，因为他的懦弱，懦弱得真实。', '最长的一版完全是顺着煽情的...  \n",
       "13  ['【温馨提示：请忽略这傻逼名字.不然你会错过一部好电影】1、病毒的鸟巢飞来了一只自由之鸟；...  \n",
       "14  ['把所有的好东西都给eva', '浪漫得一塌糊涂，像废墟中开出的花，像牵手散步的下午，像世...  \n",
       "15  ['纸飞机+挥动的小手——那一刻，什么都值了', '一个孩子在启蒙时期，能够遇到一位好的老师...  \n",
       "16  ['最后那一下爆头，刘德华和梁朝伟的眼神里都是震惊，他死在电梯里，电梯门来回的开关，我们也从...  \n",
       "17  ['看过了这一部，我好像能够更坚定地说我会当迪士尼一辈子的粉丝。迪士尼给我们营造的乌托邦就是...  \n",
       "18  ['一遍烂，两遍笑，三遍哭', '有人跟我比赛背台词么', '因为你还没有遇到给你三颗痣的人...  \n",
       "19  ['媒体越干净，社会越肮脏', '我们愤怒的不仅是禽兽的行径，更是禽兽逍遥法外，正义无处伸张...  \n",
       "20  ['男人。\\r\\n千万不要记恨你的对手，这样会让你失去理智。', '无论阿尔帕西诺多卖力，教...  \n",
       "21  ['看到开头就知道结局，不过这并不重要，重要的是过程。。。最感人的不是赢得职位，而是在厕所里...  \n",
       "22  ['查尔斯劳顿简直是戏精！比利怀德的电影和阿加莎克里斯蒂的小说都是在结尾峰回路转，此片简直是...  \n",
       "23  ['如果你在下雨天的车站，遇到被淋湿的妖怪，请把雨伞借给它，你会得到森林的通行证哦', '原...  \n",
       "24  ['某山渣树怎么好意思说自己是史上最纯？？！！！！！ 这个真打动我了。。。女孩是第二眼美女！...  "
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests ### 规范化爬取多页\n",
    "import pandas as pd\n",
    "from lxml import etree\n",
    "\n",
    "headers = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62',\n",
    "    'Cookie': '_vwo_uuid_v2=DF3BC37668EB9E0D898EF656883F8AC49|428bbf945ee750af7bfbbe49332d6458; bid=7CTQ6Kmi-pg; push_doumail_num=0; push_noty_num=0; __utmv=30149280.22926; __gads=ID=a6183812fd6e7a86-22994bc86fcf00af:T=1639464898:RT=1639464898:S=ALNI_MZbHcWstraSiZzpyDyMmldmralvNA; ll=\"128496\"; __yadk_uid=lF2MMZf02g84RCrFKQpre7fac93g74eG; _pk_ref.100001.4cf6=%5B%22%22%2C%22%22%2C1642580411%2C%22https%3A%2F%2Fcn.bing.com%2F%22%5D; _pk_ses.100001.4cf6=*; ap_v=0,6.0; __utma=30149280.1288512643.1639464884.1641803147.1642580411.14; __utmb=30149280.0.10.1642580411; __utmc=30149280; __utmz=30149280.1642580411.14.3.utmcsr=cn.bing.com|utmccn=(referral)|utmcmd=referral|utmcct=/; __utma=223695111.1951251099.1637843614.1641803147.1642580411.4; __utmb=223695111.0.10.1642580411; __utmc=223695111; __utmz=223695111.1642580411.4.3.utmcsr=cn.bing.com|utmccn=(referral)|utmcmd=referral|utmcct=/; _pk_id.100001.4cf6=c2b24a2232fc7d29.1637843613.4.1642580434.1641803209.',\n",
    "}\n",
    "\n",
    "def get_datas(url,headers):\n",
    "    try:\n",
    "        res = requests.get(url=url,headers=headers)\n",
    "        if res.status_code==200:\n",
    "            return res.text\n",
    "    except requests.RequestException:\n",
    "        print('error while crawling {}'.format(url))\n",
    "\n",
    "def parses(htmls):\n",
    "    html = etree.HTML(htmls)\n",
    "\n",
    "    rank_num = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/em/text()')\n",
    "    movie_name = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/span[1]/text()')\n",
    "    actors = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[1]')\n",
    "    actors = [i.strip() for i in actors]\n",
    "    scores = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[2]/text()')\n",
    "    comments = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[4]/text()')\n",
    "    comments = [i.strip('人评价') for i in comments]\n",
    "    release_time = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[1]/text()[2]')\n",
    "    inq = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[2]/p[2]/span/text()')\n",
    "    imgs_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[1]/a/img/@src')\n",
    "    details_url = html.xpath('//*[@id=\"content\"]/div/div[1]/ol/li/div/div[2]/div[1]/a/@href')\n",
    "\n",
    "    return rank_num,movie_name,actors,scores,comments,release_time,inq,imgs_url,details_url\n",
    "\n",
    "def save_datas(datas):\n",
    "    rank_num,movie_name,actors,scores,comments,release_time,inq,imgs_url,details_url,percent_5stars,summaries,comments5 = datas\n",
    "    datas = {\n",
    "        'rank_num': rank_num,\n",
    "        'movie_name': movie_name,\n",
    "        'actors': actors,\n",
    "        'scores': scores,\n",
    "        'comments': comments,\n",
    "        'release_time': release_time,\n",
    "        'inq': inq,\n",
    "        'imgs_url': imgs_url,\n",
    "        'details_url': details_url,\n",
    "        'percent_5stars': percent_5stars,\n",
    "        'summaries': summaries,\n",
    "        'comments5': comments5\n",
    "    }\n",
    "    df = pd.DataFrame(datas)\n",
    "    # global dfs\n",
    "    # dfs = pd.concat([dfs, df])\n",
    "    return df\n",
    "\n",
    "def parses_detail(htmls):\n",
    "    html = etree.HTML(htmls)\n",
    "    \n",
    "    percent_5star = html.xpath('//*[@id=\"interest_sectl\"]/div[1]/div[3]/div[1]/span[2]/text()[1]')[0]\n",
    "    summaries = html.xpath('//*[@id=\"link-report\"]/span[1]//text()')\n",
    "    summaries = str(summaries)\n",
    "    comments5 = html.xpath('//*[@id=\"hot-comments\"]/div/div/p/span/text()')\n",
    "    comments5 = str(comments5)\n",
    "\n",
    "    return percent_5star, summaries, comments5\n",
    "\n",
    "def main(pages, main_url):\n",
    "    global dfs\n",
    "    dfs = pd.DataFrame()\n",
    "    for page in range(pages):\n",
    "        print(page)\n",
    "        htmls = get_datas(main_url.format(page*25), headers)\n",
    "        rank_num,movie_name,actors,scores,comments,release_time,inq,imgs_url,details_url = parses(htmls)\n",
    "        percent_5stars, summaries, comments5 = [[] for i in range(3)]\n",
    "        for de_urls in details_url:\n",
    "            print(de_urls)\n",
    "            htmls = get_datas(de_urls, headers)\n",
    "            datas = parses_detail(htmls)\n",
    "            percent_5stars.append(datas[0])\n",
    "            summaries.append(datas[1])\n",
    "            comments5.append(datas[2])\n",
    "        datas = [rank_num,movie_name,actors,scores,comments,release_time,inq,imgs_url,details_url,percent_5stars,summaries,comments5]\n",
    "        dfs = pd.concat([dfs, save_datas(datas)])\n",
    "    # print(dfs)\n",
    "    # dfs.to_csv('datas.csv', index=False)\n",
    "\n",
    "\n",
    "if __name__ == '__main__':\n",
    "    pages = 1\n",
    "    main_url = 'https://movie.douban.com/top250?start={}&filter='\n",
    "    main(pages, main_url)\n",
    "dfs"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 实战2——获取上市公司数据\n",
    "\n",
    "问：此时此刻有多少家上市公司？各公司每季度净利润？横向和纵向对比？\n",
    "\n",
    "数据来源：中商官网——中商情报网——[中商产业研究院](https://s.askci.com/stock/a/)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>序号</th>\n",
       "      <th>股票代码</th>\n",
       "      <th>股票简称</th>\n",
       "      <th>公司名称</th>\n",
       "      <th>省份</th>\n",
       "      <th>城市</th>\n",
       "      <th>主营业务收入(202109)</th>\n",
       "      <th>净利润(202109)</th>\n",
       "      <th>员工人数</th>\n",
       "      <th>上市日期</th>\n",
       "      <th>招股书</th>\n",
       "      <th>公司财报</th>\n",
       "      <th>行业分类</th>\n",
       "      <th>产品类型</th>\n",
       "      <th>主营业务</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>21</td>\n",
       "      <td>27</td>\n",
       "      <td>深圳能源</td>\n",
       "      <td>深圳能源集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>205.72亿</td>\n",
       "      <td>27.85亿</td>\n",
       "      <td>7384</td>\n",
       "      <td>1993-09-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>火电</td>\n",
       "      <td>燃煤、燃机、水电、风电、生态环保、综合燃气</td>\n",
       "      <td>各种常规能源和新能源的开发、生产、购销,以及城市固体废物处理、城市燃气供应和废水处理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>22</td>\n",
       "      <td>28</td>\n",
       "      <td>国药一致</td>\n",
       "      <td>国药集团一致药业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>502.10亿</td>\n",
       "      <td>12.71亿</td>\n",
       "      <td>38289</td>\n",
       "      <td>1993-08-09</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>医药商业</td>\n",
       "      <td>药品、器械耗材、诊断试剂、仪器设备</td>\n",
       "      <td>医药分销和医药零售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>23</td>\n",
       "      <td>29</td>\n",
       "      <td>深深房A</td>\n",
       "      <td>深圳经济特区房地产(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>9.67亿</td>\n",
       "      <td>1.62亿</td>\n",
       "      <td>1668</td>\n",
       "      <td>1993-09-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>住宅、商铺及车位、公寓</td>\n",
       "      <td>住宅地产开发。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>24</td>\n",
       "      <td>30</td>\n",
       "      <td>富奥股份</td>\n",
       "      <td>富奥汽车零部件股份有限公司</td>\n",
       "      <td>吉林</td>\n",
       "      <td>长春市</td>\n",
       "      <td>93.52亿</td>\n",
       "      <td>6.11亿</td>\n",
       "      <td>7397</td>\n",
       "      <td>1993-09-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>汽车零部件</td>\n",
       "      <td>零部件</td>\n",
       "      <td>汽车零部件的研发、生产和销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>25</td>\n",
       "      <td>31</td>\n",
       "      <td>大悦城</td>\n",
       "      <td>大悦城控股集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>221.29亿</td>\n",
       "      <td>18.40亿</td>\n",
       "      <td>10283</td>\n",
       "      <td>1993-10-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>商品房销售、一级土地开发、投资物业及相关服务、酒店经营、物业及其他管理</td>\n",
       "      <td>房地产开发、经营、销售、出租及管理住宅、商用物业，经营业态涵盖住宅、商业地产及部分产业地产。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>26</td>\n",
       "      <td>32</td>\n",
       "      <td>深桑达A</td>\n",
       "      <td>深圳市桑达实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>279.25亿</td>\n",
       "      <td>5.03亿</td>\n",
       "      <td>476</td>\n",
       "      <td>1993-10-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子物流</td>\n",
       "      <td>电子信息、房地产及租赁、电子商贸、电子物流</td>\n",
       "      <td>电子制造、电子商贸、电子物流服务等在内的一体化现代电子信息服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>27</td>\n",
       "      <td>34</td>\n",
       "      <td>神州数码</td>\n",
       "      <td>神州数码集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>860.11亿</td>\n",
       "      <td>3451.21万</td>\n",
       "      <td>4569</td>\n",
       "      <td>1994-05-09</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>贸易</td>\n",
       "      <td>云管理服务及数字化方案提供商、信息技术应用创新业务、IT领域分销和增值服务商</td>\n",
       "      <td>云管理服务及数字化方案提供商,信息技术应用创新业务,IT领域分销和增值服务商。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>28</td>\n",
       "      <td>35</td>\n",
       "      <td>中国天楹</td>\n",
       "      <td>中国天楹股份有限公司</td>\n",
       "      <td>江苏</td>\n",
       "      <td>南通市</td>\n",
       "      <td>173.15亿</td>\n",
       "      <td>6.65亿</td>\n",
       "      <td>60224</td>\n",
       "      <td>1994-04-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>垃圾发电</td>\n",
       "      <td>综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置、环保装备制造</td>\n",
       "      <td>综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置和环保装备制造。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>29</td>\n",
       "      <td>36</td>\n",
       "      <td>华联控股</td>\n",
       "      <td>华联控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>8.26亿</td>\n",
       "      <td>1.96亿</td>\n",
       "      <td>806</td>\n",
       "      <td>1994-06-17</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房产销售、房地产出租、酒店收入</td>\n",
       "      <td>房地产开发和物业经营与服务管理业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>30</td>\n",
       "      <td>37</td>\n",
       "      <td>深南电A</td>\n",
       "      <td>深圳南山热电股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>5.89亿</td>\n",
       "      <td>-4972.40万</td>\n",
       "      <td>403</td>\n",
       "      <td>1994-07-01</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>火电</td>\n",
       "      <td>能源行业、工程劳务、污泥干化</td>\n",
       "      <td>生产经营供电供热、从事发电厂(站)的相关技术咨询和技术服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>31</td>\n",
       "      <td>38</td>\n",
       "      <td>深大通</td>\n",
       "      <td>深圳大通实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.86亿</td>\n",
       "      <td>-3.36亿</td>\n",
       "      <td>147</td>\n",
       "      <td>1994-08-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>网络媒体</td>\n",
       "      <td>煤炭、铁精粉贸易、广告发布、民间资本管理、保理业务</td>\n",
       "      <td>以生物技术研究及创新医药、生物工程及后端衍生功能性健康消费品为主要发展方向，以供应链服务及民...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>32</td>\n",
       "      <td>39</td>\n",
       "      <td>中集集团</td>\n",
       "      <td>中国国际海运集装箱(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1182.42亿</td>\n",
       "      <td>99.44亿</td>\n",
       "      <td>53928</td>\n",
       "      <td>1994-04-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>金属制品</td>\n",
       "      <td>集装箱、道路运输车辆、能源、化工、液态食品装备、海洋工程、空港设备、物流服务、金融、房地产、重卡</td>\n",
       "      <td>主要从事集装箱、能源、化工及液态食品装备、海洋工程装备、空港设备的制造及服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>33</td>\n",
       "      <td>40</td>\n",
       "      <td>东旭蓝天</td>\n",
       "      <td>东旭蓝天新能源股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.16亿</td>\n",
       "      <td>-1.85亿</td>\n",
       "      <td>572</td>\n",
       "      <td>1994-08-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>太阳能</td>\n",
       "      <td>物业及房屋租赁、新能源、生态环保、供应链</td>\n",
       "      <td>光伏电站投资、建设、运营,房地产开发与销售、物业管理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>34</td>\n",
       "      <td>42</td>\n",
       "      <td>中洲控股</td>\n",
       "      <td>深圳市中洲投资控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>60.02亿</td>\n",
       "      <td>2.17亿</td>\n",
       "      <td>2489</td>\n",
       "      <td>1994-09-21</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产、服务、酒店、施工</td>\n",
       "      <td>房地产开发。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>35</td>\n",
       "      <td>45</td>\n",
       "      <td>深纺织A</td>\n",
       "      <td>深圳市纺织(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>16.72亿</td>\n",
       "      <td>1.14亿</td>\n",
       "      <td>1369</td>\n",
       "      <td>1994-08-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>显示器件</td>\n",
       "      <td>物业及租赁、纺织品、偏光片、贸易</td>\n",
       "      <td>液晶显示用偏光片的研发、生产、营销，自有物业的经营管理业务及高档纺织服装业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>36</td>\n",
       "      <td>46</td>\n",
       "      <td>泛海控股</td>\n",
       "      <td>泛海控股股份有限公司</td>\n",
       "      <td>北京</td>\n",
       "      <td>北京市</td>\n",
       "      <td>140.97亿</td>\n",
       "      <td>-18.10亿</td>\n",
       "      <td>9601</td>\n",
       "      <td>1994-09-12</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产销售、物业出租、物业管理、装修工程、金融投资、金融贸易</td>\n",
       "      <td>项目投资,资产管理,房地产及旅游项目开发、物业管理(以上项目凭资质证经营),建筑设备、建筑装...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>37</td>\n",
       "      <td>48</td>\n",
       "      <td>京基智农</td>\n",
       "      <td>深圳市京基智农时代股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.80亿</td>\n",
       "      <td>3.83亿</td>\n",
       "      <td>1305</td>\n",
       "      <td>1994-11-01</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>饲料</td>\n",
       "      <td>农业、房地产业、金融</td>\n",
       "      <td>饲料生产、自来水供应、房地产开发、商业贸易、养殖业、房屋及土地租赁、金融等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>38</td>\n",
       "      <td>49</td>\n",
       "      <td>德赛电池</td>\n",
       "      <td>深圳市德赛电池科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>126.22亿</td>\n",
       "      <td>4.92亿</td>\n",
       "      <td>9833</td>\n",
       "      <td>1995-03-20</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电池</td>\n",
       "      <td>小型锂电池电源管理系统及封装集成业务、中型锂电池电源管理系统及封装集成业务、大型新能源汽车电...</td>\n",
       "      <td>锂电池电源管理系统及封装集成业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>39</td>\n",
       "      <td>50</td>\n",
       "      <td>深天马A</td>\n",
       "      <td>天马微电子股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>239.62亿</td>\n",
       "      <td>14.10亿</td>\n",
       "      <td>37484</td>\n",
       "      <td>1995-03-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>显示器件</td>\n",
       "      <td>电子元器件</td>\n",
       "      <td>从事液晶显示器及相关材料、设备、产品的设计、制造、销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>40</td>\n",
       "      <td>55</td>\n",
       "      <td>方大集团</td>\n",
       "      <td>方大集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>24.40亿</td>\n",
       "      <td>1.86亿</td>\n",
       "      <td>2245</td>\n",
       "      <td>1996-04-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>其他建材</td>\n",
       "      <td>智慧幕墙系统及材料产业、轨道交通设备产业、新能源产业、房地产产业</td>\n",
       "      <td>高端幕墙系统及材料产业、轨道交通屏蔽门设备产业、新能源产业、房地产等业务。</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    序号  股票代码  股票简称                 公司名称  省份   城市 主营业务收入(202109) 净利润(202109)  \\\n",
       "0   21    27  深圳能源         深圳能源集团股份有限公司  广东  深圳市        205.72亿      27.85亿   \n",
       "1   22    28  国药一致       国药集团一致药业股份有限公司  广东  深圳市        502.10亿      12.71亿   \n",
       "2   23    29  深深房A  深圳经济特区房地产(集团)股份有限公司  广东  深圳市          9.67亿       1.62亿   \n",
       "3   24    30  富奥股份        富奥汽车零部件股份有限公司  吉林  长春市         93.52亿       6.11亿   \n",
       "4   25    31   大悦城        大悦城控股集团股份有限公司  广东  深圳市        221.29亿      18.40亿   \n",
       "5   26    32  深桑达A        深圳市桑达实业股份有限公司  广东  深圳市        279.25亿       5.03亿   \n",
       "6   27    34  神州数码         神州数码集团股份有限公司  广东  深圳市        860.11亿    3451.21万   \n",
       "7   28    35  中国天楹           中国天楹股份有限公司  江苏  南通市        173.15亿       6.65亿   \n",
       "8   29    36  华联控股           华联控股股份有限公司  广东  深圳市          8.26亿       1.96亿   \n",
       "9   30    37  深南电A         深圳南山热电股份有限公司  广东  深圳市          5.89亿   -4972.40万   \n",
       "10  31    38   深大通         深圳大通实业股份有限公司  广东  深圳市         28.86亿      -3.36亿   \n",
       "11  32    39  中集集团  中国国际海运集装箱(集团)股份有限公司  广东  深圳市       1182.42亿      99.44亿   \n",
       "12  33    40  东旭蓝天        东旭蓝天新能源股份有限公司  广东  深圳市         28.16亿      -1.85亿   \n",
       "13  34    42  中洲控股      深圳市中洲投资控股股份有限公司  广东  深圳市         60.02亿       2.17亿   \n",
       "14  35    45  深纺织A      深圳市纺织(集团)股份有限公司  广东  深圳市         16.72亿       1.14亿   \n",
       "15  36    46  泛海控股           泛海控股股份有限公司  北京  北京市        140.97亿     -18.10亿   \n",
       "16  37    48  京基智农      深圳市京基智农时代股份有限公司  广东  深圳市         28.80亿       3.83亿   \n",
       "17  38    49  德赛电池      深圳市德赛电池科技股份有限公司  广东  深圳市        126.22亿       4.92亿   \n",
       "18  39    50  深天马A          天马微电子股份有限公司  广东  深圳市        239.62亿      14.10亿   \n",
       "19  40    55  方大集团           方大集团股份有限公司  广东  深圳市         24.40亿       1.86亿   \n",
       "\n",
       "     员工人数        上市日期 招股书  公司财报   行业分类  \\\n",
       "0    7384  1993-09-03  --   NaN     火电   \n",
       "1   38289  1993-08-09  --   NaN   医药商业   \n",
       "2    1668  1993-09-15  --   NaN  房地产开发   \n",
       "3    7397  1993-09-29  --   NaN  汽车零部件   \n",
       "4   10283  1993-10-08  --   NaN  房地产开发   \n",
       "5     476  1993-10-28  --   NaN   电子物流   \n",
       "6    4569  1994-05-09  --   NaN     贸易   \n",
       "7   60224  1994-04-08  --   NaN   垃圾发电   \n",
       "8     806  1994-06-17  --   NaN  房地产开发   \n",
       "9     403  1994-07-01  --   NaN     火电   \n",
       "10    147  1994-08-08  --   NaN   网络媒体   \n",
       "11  53928  1994-04-08  --   NaN   金属制品   \n",
       "12    572  1994-08-08  --   NaN    太阳能   \n",
       "13   2489  1994-09-21  --   NaN  房地产开发   \n",
       "14   1369  1994-08-15  --   NaN   显示器件   \n",
       "15   9601  1994-09-12  --   NaN  房地产开发   \n",
       "16   1305  1994-11-01  --   NaN     饲料   \n",
       "17   9833  1995-03-20  --   NaN     电池   \n",
       "18  37484  1995-03-15  --   NaN   显示器件   \n",
       "19   2245  1996-04-15  --   NaN   其他建材   \n",
       "\n",
       "                                                 产品类型  \\\n",
       "0                               燃煤、燃机、水电、风电、生态环保、综合燃气   \n",
       "1                                   药品、器械耗材、诊断试剂、仪器设备   \n",
       "2                                         住宅、商铺及车位、公寓   \n",
       "3                                                 零部件   \n",
       "4                 商品房销售、一级土地开发、投资物业及相关服务、酒店经营、物业及其他管理   \n",
       "5                               电子信息、房地产及租赁、电子商贸、电子物流   \n",
       "6              云管理服务及数字化方案提供商、信息技术应用创新业务、IT领域分销和增值服务商   \n",
       "7             综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置、环保装备制造   \n",
       "8                                     房产销售、房地产出租、酒店收入   \n",
       "9                                      能源行业、工程劳务、污泥干化   \n",
       "10                          煤炭、铁精粉贸易、广告发布、民间资本管理、保理业务   \n",
       "11   集装箱、道路运输车辆、能源、化工、液态食品装备、海洋工程、空港设备、物流服务、金融、房地产、重卡   \n",
       "12                               物业及房屋租赁、新能源、生态环保、供应链   \n",
       "13                                       房地产、服务、酒店、施工   \n",
       "14                                   物业及租赁、纺织品、偏光片、贸易   \n",
       "15                     房地产销售、物业出租、物业管理、装修工程、金融投资、金融贸易   \n",
       "16                                         农业、房地产业、金融   \n",
       "17  小型锂电池电源管理系统及封装集成业务、中型锂电池电源管理系统及封装集成业务、大型新能源汽车电...   \n",
       "18                                              电子元器件   \n",
       "19                   智慧幕墙系统及材料产业、轨道交通设备产业、新能源产业、房地产产业   \n",
       "\n",
       "                                                 主营业务  \n",
       "0        各种常规能源和新能源的开发、生产、购销,以及城市固体废物处理、城市燃气供应和废水处理等。  \n",
       "1                                          医药分销和医药零售。  \n",
       "2                                             住宅地产开发。  \n",
       "3                                     汽车零部件的研发、生产和销售。  \n",
       "4      房地产开发、经营、销售、出租及管理住宅、商用物业，经营业态涵盖住宅、商业地产及部分产业地产。  \n",
       "5                    电子制造、电子商贸、电子物流服务等在内的一体化现代电子信息服务。  \n",
       "6             云管理服务及数字化方案提供商,信息技术应用创新业务,IT领域分销和增值服务商。  \n",
       "7            综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置和环保装备制造。  \n",
       "8                                  房地产开发和物业经营与服务管理业务。  \n",
       "9                      生产经营供电供热、从事发电厂(站)的相关技术咨询和技术服务。  \n",
       "10  以生物技术研究及创新医药、生物工程及后端衍生功能性健康消费品为主要发展方向，以供应链服务及民...  \n",
       "11          主要从事集装箱、能源、化工及液态食品装备、海洋工程装备、空港设备的制造及服务业务。  \n",
       "12                       光伏电站投资、建设、运营,房地产开发与销售、物业管理等。  \n",
       "13                                             房地产开发。  \n",
       "14            液晶显示用偏光片的研发、生产、营销，自有物业的经营管理业务及高档纺织服装业务。  \n",
       "15  项目投资,资产管理,房地产及旅游项目开发、物业管理(以上项目凭资质证经营),建筑设备、建筑装...  \n",
       "16             饲料生产、自来水供应、房地产开发、商业贸易、养殖业、房屋及土地租赁、金融等。  \n",
       "17                                  锂电池电源管理系统及封装集成业务。  \n",
       "18                       从事液晶显示器及相关材料、设备、产品的设计、制造、销售。  \n",
       "19              高端幕墙系统及材料产业、轨道交通屏蔽门设备产业、新能源产业、房地产等业务。  "
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "df = pd.read_html('https://s.askci.com/stock/a/0-0?reportTime=2021-09-30&pageNum=2#QueryCondition')\n",
    "df[-1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>序号</th>\n",
       "      <th>股票代码</th>\n",
       "      <th>股票简称</th>\n",
       "      <th>公司名称</th>\n",
       "      <th>省份</th>\n",
       "      <th>城市</th>\n",
       "      <th>主营业务收入(202109)</th>\n",
       "      <th>净利润(202109)</th>\n",
       "      <th>员工人数</th>\n",
       "      <th>上市日期</th>\n",
       "      <th>招股书</th>\n",
       "      <th>公司财报</th>\n",
       "      <th>行业分类</th>\n",
       "      <th>产品类型</th>\n",
       "      <th>主营业务</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>平安银行</td>\n",
       "      <td>平安银行股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1271.90亿</td>\n",
       "      <td>291.35亿</td>\n",
       "      <td>36676</td>\n",
       "      <td>1991-04-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>银行</td>\n",
       "      <td>商业银行业务</td>\n",
       "      <td>经有关监管机构批准的各项商业银行业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>万科A</td>\n",
       "      <td>万科企业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>2714.86亿</td>\n",
       "      <td>246.04亿</td>\n",
       "      <td>140565</td>\n",
       "      <td>1991-01-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产、物业管理、投资咨询</td>\n",
       "      <td>房地产开发和物业服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>国华网安</td>\n",
       "      <td>深圳国华网安科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1.66亿</td>\n",
       "      <td>3395.90万</td>\n",
       "      <td>264</td>\n",
       "      <td>1991-01-14</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>生物医药</td>\n",
       "      <td>移动应用安全服务、移动互联网游戏</td>\n",
       "      <td>移动应用安全服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>5</td>\n",
       "      <td>ST星源</td>\n",
       "      <td>深圳世纪星源股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>2.92亿</td>\n",
       "      <td>1.92亿</td>\n",
       "      <td>629</td>\n",
       "      <td>1990-12-10</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>环保工程、物业管理</td>\n",
       "      <td>酒店经营、物业管理、环保业务</td>\n",
       "      <td>绿色低碳城市社区建设相关的服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>6</td>\n",
       "      <td>深振业A</td>\n",
       "      <td>深圳市振业(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>23.02亿</td>\n",
       "      <td>5.88亿</td>\n",
       "      <td>397</td>\n",
       "      <td>1992-04-27</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产</td>\n",
       "      <td>从事房地产开发与销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>*ST全新</td>\n",
       "      <td>深圳市全新好股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1.28亿</td>\n",
       "      <td>-308.50万</td>\n",
       "      <td>76</td>\n",
       "      <td>1992-04-13</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>物业经营</td>\n",
       "      <td>物业管理及停车费、房屋租赁、一次性口罩、纳米胶囊、杀菌纸巾</td>\n",
       "      <td>物业管理和房屋租赁业等</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "      <td>神州高铁</td>\n",
       "      <td>神州高铁技术股份有限公司</td>\n",
       "      <td>北京</td>\n",
       "      <td>北京市</td>\n",
       "      <td>10.43亿</td>\n",
       "      <td>-9568.30万</td>\n",
       "      <td>2394</td>\n",
       "      <td>1992-05-07</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>轨道交通设备</td>\n",
       "      <td>轨道交通</td>\n",
       "      <td>专业致力于提供轨道交通运营检修装备与数据、线路运营、维保服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>9</td>\n",
       "      <td>中国宝安</td>\n",
       "      <td>中国宝安集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>122.07亿</td>\n",
       "      <td>15.18亿</td>\n",
       "      <td>13345</td>\n",
       "      <td>1991-06-25</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>综合</td>\n",
       "      <td>高新技术产业、生物医药、房地产</td>\n",
       "      <td>高新技术产业、生物医药产业、房地产及其他产业。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>10</td>\n",
       "      <td>美丽生态</td>\n",
       "      <td>深圳美丽生态股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>10.57亿</td>\n",
       "      <td>4003.73万</td>\n",
       "      <td>278</td>\n",
       "      <td>1995-10-27</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>园林工程</td>\n",
       "      <td>燃气销售服务、园林建设、园林设计、苗木销售</td>\n",
       "      <td>工程施工、园林绿化及环境综合整治。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>深物业A</td>\n",
       "      <td>深圳市物业发展(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>31.81亿</td>\n",
       "      <td>7.63亿</td>\n",
       "      <td>8035</td>\n",
       "      <td>1992-03-30</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>产城空间开发、物业管理服务、产业生态运营、餐饮业务、工程监理业务</td>\n",
       "      <td>从事房地产开发经营，兼营物业管理、房屋租赁、出租车客运、餐饮服务等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>南玻A</td>\n",
       "      <td>中国南玻集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>102.47亿</td>\n",
       "      <td>15.37亿</td>\n",
       "      <td>10558</td>\n",
       "      <td>1992-02-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>玻璃</td>\n",
       "      <td>玻璃业务、电子玻璃及显示器件业务、太阳能及其他业务</td>\n",
       "      <td>研发、生产制造和销售优质浮法玻璃和工程玻璃、太阳能玻璃和硅材料、光伏电池和组件等可再生能源产...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>14</td>\n",
       "      <td>沙河股份</td>\n",
       "      <td>沙河实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>2434.55万</td>\n",
       "      <td>-3118.04万</td>\n",
       "      <td>153</td>\n",
       "      <td>1992-06-02</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产销售</td>\n",
       "      <td>从事房地产开发与经营、现代服务型产业用房运营与管理。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>16</td>\n",
       "      <td>深康佳A</td>\n",
       "      <td>康佳集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>316.27亿</td>\n",
       "      <td>-1.29亿</td>\n",
       "      <td>17216</td>\n",
       "      <td>1992-03-27</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电视机</td>\n",
       "      <td>工贸业务、彩电业务、环保业务、白电业务、半导体业务</td>\n",
       "      <td>消费类电子业务、工贸业务、环保业务、半导体业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>17</td>\n",
       "      <td>深中华A</td>\n",
       "      <td>深圳中华自行车(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>8324.37万</td>\n",
       "      <td>220.27万</td>\n",
       "      <td>65</td>\n",
       "      <td>1992-03-31</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>自行车</td>\n",
       "      <td>自行车及零配件销售、锂电池材料、珠宝黄金</td>\n",
       "      <td>自行车及锂电池材料业务、珠宝黄金业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>19</td>\n",
       "      <td>深粮控股</td>\n",
       "      <td>深圳市深粮控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>75.54亿</td>\n",
       "      <td>2.99亿</td>\n",
       "      <td>1246</td>\n",
       "      <td>1992-10-12</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>软饮料</td>\n",
       "      <td>食品和饮料及茶加工、粮油贸易及加工、粮油仓储物流及服务</td>\n",
       "      <td>批发零售业务、食品加工制造业务、租赁及商务服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>20</td>\n",
       "      <td>深华发A</td>\n",
       "      <td>深圳中恒华发股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>6.04亿</td>\n",
       "      <td>816.42万</td>\n",
       "      <td>1132</td>\n",
       "      <td>1992-04-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子零部件</td>\n",
       "      <td>显示器、注塑件、EPS产品、物业租赁、废料收入、水电费及其他</td>\n",
       "      <td>精密注塑件的加工、销售;液晶显示器的加工、销售;轻型包装材料的加工、销售以及物业租赁业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>21</td>\n",
       "      <td>深科技</td>\n",
       "      <td>深圳长城开发科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>122.68亿</td>\n",
       "      <td>5.78亿</td>\n",
       "      <td>27051</td>\n",
       "      <td>1994-02-02</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>PC、服务器及硬件</td>\n",
       "      <td>存储半导体业务、自有产品、高端制造</td>\n",
       "      <td>致力于为全球客户提供技术研发、工艺设计、生产加工、采购管理、物流支持等电子产品制造服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>23</td>\n",
       "      <td>深天地A</td>\n",
       "      <td>深圳市天地(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>11.22亿</td>\n",
       "      <td>1998.86万</td>\n",
       "      <td>984</td>\n",
       "      <td>1993-04-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>商品混凝土</td>\n",
       "      <td>房地产、工业、租赁</td>\n",
       "      <td>商品混凝土的生产和销售、房地产的开发及物业管理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>25</td>\n",
       "      <td>特力A</td>\n",
       "      <td>深圳市特力(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>3.86亿</td>\n",
       "      <td>7035.21万</td>\n",
       "      <td>302</td>\n",
       "      <td>1993-06-21</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>汽车销售</td>\n",
       "      <td>汽车销售、汽车维修及检测、珠宝批发及零售、物业租赁及服务</td>\n",
       "      <td>汽车销售、汽车检测、维修及配件销售；资源性资产管理；珠宝服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>26</td>\n",
       "      <td>飞亚达</td>\n",
       "      <td>飞亚达精密科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>40.85亿</td>\n",
       "      <td>3.43亿</td>\n",
       "      <td>4901</td>\n",
       "      <td>1993-06-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>珠宝首饰</td>\n",
       "      <td>手表品牌业务、手表零售服务业务、精密科技业务、租赁业务</td>\n",
       "      <td>主要从事钟表及其零配件的设计、开发、制造、销售和维修业务，包括\"飞亚达\"表的产品经营和世界名...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>21</td>\n",
       "      <td>27</td>\n",
       "      <td>深圳能源</td>\n",
       "      <td>深圳能源集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>205.72亿</td>\n",
       "      <td>27.85亿</td>\n",
       "      <td>7384</td>\n",
       "      <td>1993-09-03</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>火电</td>\n",
       "      <td>燃煤、燃机、水电、风电、生态环保、综合燃气</td>\n",
       "      <td>各种常规能源和新能源的开发、生产、购销,以及城市固体废物处理、城市燃气供应和废水处理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>22</td>\n",
       "      <td>28</td>\n",
       "      <td>国药一致</td>\n",
       "      <td>国药集团一致药业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>502.10亿</td>\n",
       "      <td>12.71亿</td>\n",
       "      <td>38289</td>\n",
       "      <td>1993-08-09</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>医药商业</td>\n",
       "      <td>药品、器械耗材、诊断试剂、仪器设备</td>\n",
       "      <td>医药分销和医药零售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>23</td>\n",
       "      <td>29</td>\n",
       "      <td>深深房A</td>\n",
       "      <td>深圳经济特区房地产(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>9.67亿</td>\n",
       "      <td>1.62亿</td>\n",
       "      <td>1668</td>\n",
       "      <td>1993-09-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>住宅、商铺及车位、公寓</td>\n",
       "      <td>住宅地产开发。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>24</td>\n",
       "      <td>30</td>\n",
       "      <td>富奥股份</td>\n",
       "      <td>富奥汽车零部件股份有限公司</td>\n",
       "      <td>吉林</td>\n",
       "      <td>长春市</td>\n",
       "      <td>93.52亿</td>\n",
       "      <td>6.11亿</td>\n",
       "      <td>7397</td>\n",
       "      <td>1993-09-29</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>汽车零部件</td>\n",
       "      <td>零部件</td>\n",
       "      <td>汽车零部件的研发、生产和销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>25</td>\n",
       "      <td>31</td>\n",
       "      <td>大悦城</td>\n",
       "      <td>大悦城控股集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>221.29亿</td>\n",
       "      <td>18.40亿</td>\n",
       "      <td>10283</td>\n",
       "      <td>1993-10-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>商品房销售、一级土地开发、投资物业及相关服务、酒店经营、物业及其他管理</td>\n",
       "      <td>房地产开发、经营、销售、出租及管理住宅、商用物业，经营业态涵盖住宅、商业地产及部分产业地产。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>26</td>\n",
       "      <td>32</td>\n",
       "      <td>深桑达A</td>\n",
       "      <td>深圳市桑达实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>279.25亿</td>\n",
       "      <td>5.03亿</td>\n",
       "      <td>476</td>\n",
       "      <td>1993-10-28</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子物流</td>\n",
       "      <td>电子信息、房地产及租赁、电子商贸、电子物流</td>\n",
       "      <td>电子制造、电子商贸、电子物流服务等在内的一体化现代电子信息服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>27</td>\n",
       "      <td>34</td>\n",
       "      <td>神州数码</td>\n",
       "      <td>神州数码集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>860.11亿</td>\n",
       "      <td>3451.21万</td>\n",
       "      <td>4569</td>\n",
       "      <td>1994-05-09</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>贸易</td>\n",
       "      <td>云管理服务及数字化方案提供商、信息技术应用创新业务、IT领域分销和增值服务商</td>\n",
       "      <td>云管理服务及数字化方案提供商,信息技术应用创新业务,IT领域分销和增值服务商。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>28</td>\n",
       "      <td>35</td>\n",
       "      <td>中国天楹</td>\n",
       "      <td>中国天楹股份有限公司</td>\n",
       "      <td>江苏</td>\n",
       "      <td>南通市</td>\n",
       "      <td>173.15亿</td>\n",
       "      <td>6.65亿</td>\n",
       "      <td>60224</td>\n",
       "      <td>1994-04-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>垃圾发电</td>\n",
       "      <td>综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置、环保装备制造</td>\n",
       "      <td>综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置和环保装备制造。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>29</td>\n",
       "      <td>36</td>\n",
       "      <td>华联控股</td>\n",
       "      <td>华联控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>8.26亿</td>\n",
       "      <td>1.96亿</td>\n",
       "      <td>806</td>\n",
       "      <td>1994-06-17</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房产销售、房地产出租、酒店收入</td>\n",
       "      <td>房地产开发和物业经营与服务管理业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>30</td>\n",
       "      <td>37</td>\n",
       "      <td>深南电A</td>\n",
       "      <td>深圳南山热电股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>5.89亿</td>\n",
       "      <td>-4972.40万</td>\n",
       "      <td>403</td>\n",
       "      <td>1994-07-01</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>火电</td>\n",
       "      <td>能源行业、工程劳务、污泥干化</td>\n",
       "      <td>生产经营供电供热、从事发电厂(站)的相关技术咨询和技术服务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>31</td>\n",
       "      <td>38</td>\n",
       "      <td>深大通</td>\n",
       "      <td>深圳大通实业股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.86亿</td>\n",
       "      <td>-3.36亿</td>\n",
       "      <td>147</td>\n",
       "      <td>1994-08-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>网络媒体</td>\n",
       "      <td>煤炭、铁精粉贸易、广告发布、民间资本管理、保理业务</td>\n",
       "      <td>以生物技术研究及创新医药、生物工程及后端衍生功能性健康消费品为主要发展方向，以供应链服务及民...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>32</td>\n",
       "      <td>39</td>\n",
       "      <td>中集集团</td>\n",
       "      <td>中国国际海运集装箱(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>1182.42亿</td>\n",
       "      <td>99.44亿</td>\n",
       "      <td>53928</td>\n",
       "      <td>1994-04-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>金属制品</td>\n",
       "      <td>集装箱、道路运输车辆、能源、化工、液态食品装备、海洋工程、空港设备、物流服务、金融、房地产、重卡</td>\n",
       "      <td>主要从事集装箱、能源、化工及液态食品装备、海洋工程装备、空港设备的制造及服务业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>33</td>\n",
       "      <td>40</td>\n",
       "      <td>东旭蓝天</td>\n",
       "      <td>东旭蓝天新能源股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.16亿</td>\n",
       "      <td>-1.85亿</td>\n",
       "      <td>572</td>\n",
       "      <td>1994-08-08</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>太阳能</td>\n",
       "      <td>物业及房屋租赁、新能源、生态环保、供应链</td>\n",
       "      <td>光伏电站投资、建设、运营,房地产开发与销售、物业管理等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>34</td>\n",
       "      <td>42</td>\n",
       "      <td>中洲控股</td>\n",
       "      <td>深圳市中洲投资控股股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>60.02亿</td>\n",
       "      <td>2.17亿</td>\n",
       "      <td>2489</td>\n",
       "      <td>1994-09-21</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产、服务、酒店、施工</td>\n",
       "      <td>房地产开发。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>35</td>\n",
       "      <td>45</td>\n",
       "      <td>深纺织A</td>\n",
       "      <td>深圳市纺织(集团)股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>16.72亿</td>\n",
       "      <td>1.14亿</td>\n",
       "      <td>1369</td>\n",
       "      <td>1994-08-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>显示器件</td>\n",
       "      <td>物业及租赁、纺织品、偏光片、贸易</td>\n",
       "      <td>液晶显示用偏光片的研发、生产、营销，自有物业的经营管理业务及高档纺织服装业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>36</td>\n",
       "      <td>46</td>\n",
       "      <td>泛海控股</td>\n",
       "      <td>泛海控股股份有限公司</td>\n",
       "      <td>北京</td>\n",
       "      <td>北京市</td>\n",
       "      <td>140.97亿</td>\n",
       "      <td>-18.10亿</td>\n",
       "      <td>9601</td>\n",
       "      <td>1994-09-12</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>房地产开发</td>\n",
       "      <td>房地产销售、物业出租、物业管理、装修工程、金融投资、金融贸易</td>\n",
       "      <td>项目投资,资产管理,房地产及旅游项目开发、物业管理(以上项目凭资质证经营),建筑设备、建筑装...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>37</td>\n",
       "      <td>48</td>\n",
       "      <td>京基智农</td>\n",
       "      <td>深圳市京基智农时代股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>28.80亿</td>\n",
       "      <td>3.83亿</td>\n",
       "      <td>1305</td>\n",
       "      <td>1994-11-01</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>饲料</td>\n",
       "      <td>农业、房地产业、金融</td>\n",
       "      <td>饲料生产、自来水供应、房地产开发、商业贸易、养殖业、房屋及土地租赁、金融等。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>38</td>\n",
       "      <td>49</td>\n",
       "      <td>德赛电池</td>\n",
       "      <td>深圳市德赛电池科技股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>126.22亿</td>\n",
       "      <td>4.92亿</td>\n",
       "      <td>9833</td>\n",
       "      <td>1995-03-20</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电池</td>\n",
       "      <td>小型锂电池电源管理系统及封装集成业务、中型锂电池电源管理系统及封装集成业务、大型新能源汽车电...</td>\n",
       "      <td>锂电池电源管理系统及封装集成业务。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>39</td>\n",
       "      <td>50</td>\n",
       "      <td>深天马A</td>\n",
       "      <td>天马微电子股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>239.62亿</td>\n",
       "      <td>14.10亿</td>\n",
       "      <td>37484</td>\n",
       "      <td>1995-03-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>显示器件</td>\n",
       "      <td>电子元器件</td>\n",
       "      <td>从事液晶显示器及相关材料、设备、产品的设计、制造、销售。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>40</td>\n",
       "      <td>55</td>\n",
       "      <td>方大集团</td>\n",
       "      <td>方大集团股份有限公司</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳市</td>\n",
       "      <td>24.40亿</td>\n",
       "      <td>1.86亿</td>\n",
       "      <td>2245</td>\n",
       "      <td>1996-04-15</td>\n",
       "      <td>--</td>\n",
       "      <td>NaN</td>\n",
       "      <td>其他建材</td>\n",
       "      <td>智慧幕墙系统及材料产业、轨道交通设备产业、新能源产业、房地产产业</td>\n",
       "      <td>高端幕墙系统及材料产业、轨道交通屏蔽门设备产业、新能源产业、房地产等业务。</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    序号  股票代码   股票简称                 公司名称  省份   城市 主营业务收入(202109) 净利润(202109)  \\\n",
       "0    1     1   平安银行           平安银行股份有限公司  广东  深圳市       1271.90亿     291.35亿   \n",
       "1    2     2    万科A           万科企业股份有限公司  广东  深圳市       2714.86亿     246.04亿   \n",
       "2    3     4   国华网安       深圳国华网安科技股份有限公司  广东  深圳市          1.66亿    3395.90万   \n",
       "3    4     5   ST星源         深圳世纪星源股份有限公司  广东  深圳市          2.92亿       1.92亿   \n",
       "4    5     6   深振业A      深圳市振业(集团)股份有限公司  广东  深圳市         23.02亿       5.88亿   \n",
       "5    6     7  *ST全新         深圳市全新好股份有限公司  广东  深圳市          1.28亿    -308.50万   \n",
       "6    7     8   神州高铁         神州高铁技术股份有限公司  北京  北京市         10.43亿   -9568.30万   \n",
       "7    8     9   中国宝安         中国宝安集团股份有限公司  广东  深圳市        122.07亿      15.18亿   \n",
       "8    9    10   美丽生态         深圳美丽生态股份有限公司  广东  深圳市         10.57亿    4003.73万   \n",
       "9   10    11   深物业A    深圳市物业发展(集团)股份有限公司  广东  深圳市         31.81亿       7.63亿   \n",
       "10  11    12    南玻A         中国南玻集团股份有限公司  广东  深圳市        102.47亿      15.37亿   \n",
       "11  12    14   沙河股份           沙河实业股份有限公司  广东  深圳市       2434.55万   -3118.04万   \n",
       "12  13    16   深康佳A           康佳集团股份有限公司  广东  深圳市        316.27亿      -1.29亿   \n",
       "13  14    17   深中华A    深圳中华自行车(集团)股份有限公司  广东  深圳市       8324.37万     220.27万   \n",
       "14  15    19   深粮控股        深圳市深粮控股股份有限公司  广东  深圳市         75.54亿       2.99亿   \n",
       "15  16    20   深华发A         深圳中恒华发股份有限公司  广东  深圳市          6.04亿     816.42万   \n",
       "16  17    21    深科技       深圳长城开发科技股份有限公司  广东  深圳市        122.68亿       5.78亿   \n",
       "17  18    23   深天地A      深圳市天地(集团)股份有限公司  广东  深圳市         11.22亿    1998.86万   \n",
       "18  19    25    特力A      深圳市特力(集团)股份有限公司  广东  深圳市          3.86亿    7035.21万   \n",
       "19  20    26    飞亚达        飞亚达精密科技股份有限公司  广东  深圳市         40.85亿       3.43亿   \n",
       "0   21    27   深圳能源         深圳能源集团股份有限公司  广东  深圳市        205.72亿      27.85亿   \n",
       "1   22    28   国药一致       国药集团一致药业股份有限公司  广东  深圳市        502.10亿      12.71亿   \n",
       "2   23    29   深深房A  深圳经济特区房地产(集团)股份有限公司  广东  深圳市          9.67亿       1.62亿   \n",
       "3   24    30   富奥股份        富奥汽车零部件股份有限公司  吉林  长春市         93.52亿       6.11亿   \n",
       "4   25    31    大悦城        大悦城控股集团股份有限公司  广东  深圳市        221.29亿      18.40亿   \n",
       "5   26    32   深桑达A        深圳市桑达实业股份有限公司  广东  深圳市        279.25亿       5.03亿   \n",
       "6   27    34   神州数码         神州数码集团股份有限公司  广东  深圳市        860.11亿    3451.21万   \n",
       "7   28    35   中国天楹           中国天楹股份有限公司  江苏  南通市        173.15亿       6.65亿   \n",
       "8   29    36   华联控股           华联控股股份有限公司  广东  深圳市          8.26亿       1.96亿   \n",
       "9   30    37   深南电A         深圳南山热电股份有限公司  广东  深圳市          5.89亿   -4972.40万   \n",
       "10  31    38    深大通         深圳大通实业股份有限公司  广东  深圳市         28.86亿      -3.36亿   \n",
       "11  32    39   中集集团  中国国际海运集装箱(集团)股份有限公司  广东  深圳市       1182.42亿      99.44亿   \n",
       "12  33    40   东旭蓝天        东旭蓝天新能源股份有限公司  广东  深圳市         28.16亿      -1.85亿   \n",
       "13  34    42   中洲控股      深圳市中洲投资控股股份有限公司  广东  深圳市         60.02亿       2.17亿   \n",
       "14  35    45   深纺织A      深圳市纺织(集团)股份有限公司  广东  深圳市         16.72亿       1.14亿   \n",
       "15  36    46   泛海控股           泛海控股股份有限公司  北京  北京市        140.97亿     -18.10亿   \n",
       "16  37    48   京基智农      深圳市京基智农时代股份有限公司  广东  深圳市         28.80亿       3.83亿   \n",
       "17  38    49   德赛电池      深圳市德赛电池科技股份有限公司  广东  深圳市        126.22亿       4.92亿   \n",
       "18  39    50   深天马A          天马微电子股份有限公司  广东  深圳市        239.62亿      14.10亿   \n",
       "19  40    55   方大集团           方大集团股份有限公司  广东  深圳市         24.40亿       1.86亿   \n",
       "\n",
       "      员工人数        上市日期 招股书  公司财报       行业分类  \\\n",
       "0    36676  1991-04-03  --   NaN         银行   \n",
       "1   140565  1991-01-29  --   NaN      房地产开发   \n",
       "2      264  1991-01-14  --   NaN       生物医药   \n",
       "3      629  1990-12-10  --   NaN  环保工程、物业管理   \n",
       "4      397  1992-04-27  --   NaN      房地产开发   \n",
       "5       76  1992-04-13  --   NaN       物业经营   \n",
       "6     2394  1992-05-07  --   NaN     轨道交通设备   \n",
       "7    13345  1991-06-25  --   NaN         综合   \n",
       "8      278  1995-10-27  --   NaN       园林工程   \n",
       "9     8035  1992-03-30  --   NaN      房地产开发   \n",
       "10   10558  1992-02-28  --   NaN         玻璃   \n",
       "11     153  1992-06-02  --   NaN      房地产开发   \n",
       "12   17216  1992-03-27  --   NaN        电视机   \n",
       "13      65  1992-03-31  --   NaN        自行车   \n",
       "14    1246  1992-10-12  --   NaN        软饮料   \n",
       "15    1132  1992-04-28  --   NaN      电子零部件   \n",
       "16   27051  1994-02-02  --   NaN  PC、服务器及硬件   \n",
       "17     984  1993-04-29  --   NaN      商品混凝土   \n",
       "18     302  1993-06-21  --   NaN       汽车销售   \n",
       "19    4901  1993-06-03  --   NaN       珠宝首饰   \n",
       "0     7384  1993-09-03  --   NaN         火电   \n",
       "1    38289  1993-08-09  --   NaN       医药商业   \n",
       "2     1668  1993-09-15  --   NaN      房地产开发   \n",
       "3     7397  1993-09-29  --   NaN      汽车零部件   \n",
       "4    10283  1993-10-08  --   NaN      房地产开发   \n",
       "5      476  1993-10-28  --   NaN       电子物流   \n",
       "6     4569  1994-05-09  --   NaN         贸易   \n",
       "7    60224  1994-04-08  --   NaN       垃圾发电   \n",
       "8      806  1994-06-17  --   NaN      房地产开发   \n",
       "9      403  1994-07-01  --   NaN         火电   \n",
       "10     147  1994-08-08  --   NaN       网络媒体   \n",
       "11   53928  1994-04-08  --   NaN       金属制品   \n",
       "12     572  1994-08-08  --   NaN        太阳能   \n",
       "13    2489  1994-09-21  --   NaN      房地产开发   \n",
       "14    1369  1994-08-15  --   NaN       显示器件   \n",
       "15    9601  1994-09-12  --   NaN      房地产开发   \n",
       "16    1305  1994-11-01  --   NaN         饲料   \n",
       "17    9833  1995-03-20  --   NaN         电池   \n",
       "18   37484  1995-03-15  --   NaN       显示器件   \n",
       "19    2245  1996-04-15  --   NaN       其他建材   \n",
       "\n",
       "                                                 产品类型  \\\n",
       "0                                              商业银行业务   \n",
       "1                                       房地产、物业管理、投资咨询   \n",
       "2                                    移动应用安全服务、移动互联网游戏   \n",
       "3                                      酒店经营、物业管理、环保业务   \n",
       "4                                                 房地产   \n",
       "5                       物业管理及停车费、房屋租赁、一次性口罩、纳米胶囊、杀菌纸巾   \n",
       "6                                                轨道交通   \n",
       "7                                     高新技术产业、生物医药、房地产   \n",
       "8                               燃气销售服务、园林建设、园林设计、苗木销售   \n",
       "9                    产城空间开发、物业管理服务、产业生态运营、餐饮业务、工程监理业务   \n",
       "10                          玻璃业务、电子玻璃及显示器件业务、太阳能及其他业务   \n",
       "11                                              房地产销售   \n",
       "12                          工贸业务、彩电业务、环保业务、白电业务、半导体业务   \n",
       "13                               自行车及零配件销售、锂电池材料、珠宝黄金   \n",
       "14                        食品和饮料及茶加工、粮油贸易及加工、粮油仓储物流及服务   \n",
       "15                     显示器、注塑件、EPS产品、物业租赁、废料收入、水电费及其他   \n",
       "16                                  存储半导体业务、自有产品、高端制造   \n",
       "17                                          房地产、工业、租赁   \n",
       "18                       汽车销售、汽车维修及检测、珠宝批发及零售、物业租赁及服务   \n",
       "19                        手表品牌业务、手表零售服务业务、精密科技业务、租赁业务   \n",
       "0                               燃煤、燃机、水电、风电、生态环保、综合燃气   \n",
       "1                                   药品、器械耗材、诊断试剂、仪器设备   \n",
       "2                                         住宅、商铺及车位、公寓   \n",
       "3                                                 零部件   \n",
       "4                 商品房销售、一级土地开发、投资物业及相关服务、酒店经营、物业及其他管理   \n",
       "5                               电子信息、房地产及租赁、电子商贸、电子物流   \n",
       "6              云管理服务及数字化方案提供商、信息技术应用创新业务、IT领域分销和增值服务商   \n",
       "7             综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置、环保装备制造   \n",
       "8                                     房产销售、房地产出租、酒店收入   \n",
       "9                                      能源行业、工程劳务、污泥干化   \n",
       "10                          煤炭、铁精粉贸易、广告发布、民间资本管理、保理业务   \n",
       "11   集装箱、道路运输车辆、能源、化工、液态食品装备、海洋工程、空港设备、物流服务、金融、房地产、重卡   \n",
       "12                               物业及房屋租赁、新能源、生态环保、供应链   \n",
       "13                                       房地产、服务、酒店、施工   \n",
       "14                                   物业及租赁、纺织品、偏光片、贸易   \n",
       "15                     房地产销售、物业出租、物业管理、装修工程、金融投资、金融贸易   \n",
       "16                                         农业、房地产业、金融   \n",
       "17  小型锂电池电源管理系统及封装集成业务、中型锂电池电源管理系统及封装集成业务、大型新能源汽车电...   \n",
       "18                                              电子元器件   \n",
       "19                   智慧幕墙系统及材料产业、轨道交通设备产业、新能源产业、房地产产业   \n",
       "\n",
       "                                                 主营业务  \n",
       "0                                 经有关监管机构批准的各项商业银行业务。  \n",
       "1                                         房地产开发和物业服务。  \n",
       "2                                         移动应用安全服务业务。  \n",
       "3                                  绿色低碳城市社区建设相关的服务业务。  \n",
       "4                                         从事房地产开发与销售。  \n",
       "5                                         物业管理和房屋租赁业等  \n",
       "6                     专业致力于提供轨道交通运营检修装备与数据、线路运营、维保服务。  \n",
       "7                             高新技术产业、生物医药产业、房地产及其他产业。  \n",
       "8                                   工程施工、园林绿化及环境综合整治。  \n",
       "9                  从事房地产开发经营，兼营物业管理、房屋租赁、出租车客运、餐饮服务等。  \n",
       "10  研发、生产制造和销售优质浮法玻璃和工程玻璃、太阳能玻璃和硅材料、光伏电池和组件等可再生能源产...  \n",
       "11                         从事房地产开发与经营、现代服务型产业用房运营与管理。  \n",
       "12                           消费类电子业务、工贸业务、环保业务、半导体业务。  \n",
       "13                                自行车及锂电池材料业务、珠宝黄金业务。  \n",
       "14                         批发零售业务、食品加工制造业务、租赁及商务服务业务。  \n",
       "15      精密注塑件的加工、销售;液晶显示器的加工、销售;轻型包装材料的加工、销售以及物业租赁业务。  \n",
       "16       致力于为全球客户提供技术研发、工艺设计、生产加工、采购管理、物流支持等电子产品制造服务。  \n",
       "17                          商品混凝土的生产和销售、房地产的开发及物业管理等。  \n",
       "18                  汽车销售、汽车检测、维修及配件销售；资源性资产管理；珠宝服务业务。  \n",
       "19  主要从事钟表及其零配件的设计、开发、制造、销售和维修业务，包括\"飞亚达\"表的产品经营和世界名...  \n",
       "0        各种常规能源和新能源的开发、生产、购销,以及城市固体废物处理、城市燃气供应和废水处理等。  \n",
       "1                                          医药分销和医药零售。  \n",
       "2                                             住宅地产开发。  \n",
       "3                                     汽车零部件的研发、生产和销售。  \n",
       "4      房地产开发、经营、销售、出租及管理住宅、商用物业，经营业态涵盖住宅、商业地产及部分产业地产。  \n",
       "5                    电子制造、电子商贸、电子物流服务等在内的一体化现代电子信息服务。  \n",
       "6             云管理服务及数字化方案提供商,信息技术应用创新业务,IT领域分销和增值服务商。  \n",
       "7            综合城市环境服务、废弃物处置与利用、水务综合管理、工业废弃物处置和环保装备制造。  \n",
       "8                                  房地产开发和物业经营与服务管理业务。  \n",
       "9                      生产经营供电供热、从事发电厂(站)的相关技术咨询和技术服务。  \n",
       "10  以生物技术研究及创新医药、生物工程及后端衍生功能性健康消费品为主要发展方向，以供应链服务及民...  \n",
       "11          主要从事集装箱、能源、化工及液态食品装备、海洋工程装备、空港设备的制造及服务业务。  \n",
       "12                       光伏电站投资、建设、运营,房地产开发与销售、物业管理等。  \n",
       "13                                             房地产开发。  \n",
       "14            液晶显示用偏光片的研发、生产、营销，自有物业的经营管理业务及高档纺织服装业务。  \n",
       "15  项目投资,资产管理,房地产及旅游项目开发、物业管理(以上项目凭资质证经营),建筑设备、建筑装...  \n",
       "16             饲料生产、自来水供应、房地产开发、商业贸易、养殖业、房屋及土地租赁、金融等。  \n",
       "17                                  锂电池电源管理系统及封装集成业务。  \n",
       "18                       从事液晶显示器及相关材料、设备、产品的设计、制造、销售。  \n",
       "19              高端幕墙系统及材料产业、轨道交通屏蔽门设备产业、新能源产业、房地产等业务。  "
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "dfs = pd.DataFrame()\n",
    "for page in range(1, 3):\n",
    "    df = pd.read_html('https://s.askci.com/stock/a/0-0?reportTime=2021-09-30&pageNum={}#QueryCondition'.format(page))\n",
    "    dfs = pd.concat([dfs,df[-1]])\n",
    "dfs"
   ]
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "c3ac3f88986c03f5f4ea9b167d463bfb61b25cb597313235fabe727a0f7e0da2"
  },
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
